Skip to content

Instantly share code, notes, and snippets.

@softinio
Created May 1, 2015 15:11
Show Gist options
  • Save softinio/13695a462cffc1f77150 to your computer and use it in GitHub Desktop.
Save softinio/13695a462cffc1f77150 to your computer and use it in GitHub Desktop.
Use of domainsTotalsAccurate
Note: syncStatus must be the full syncStatus object/json
async.series({
totals: function(cb){
domainsTotalsAccurate(pid, syncStatus, req, cb);
}
}, function(myError, myResult){
var result = myResult.totals;
})
For result you will get this json:
{
synced: true
}
Self explanatory if true counts match so sync complete. Else false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment