Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Commit

Permalink
Missing the right parameter to setTimeUntilReconcile
Browse files Browse the repository at this point in the history
Thanks @NejcZdovc !
  • Loading branch information
mrose17 committed Apr 10, 2018
1 parent c15f33a commit 7fc3746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Client.prototype.sync = function (callback) {
// WHY: isNaN(null) === false
self.state.reconcileStamp = now + (14 * msecs.day)
self._log('sync', { reconcileStamp: self.state.reconcileStamp })
return self.setTimeUntilReconcile(null, callback)
return self.setTimeUntilReconcile(self.state.reconcileStamp, callback)
}
// the caller is responsible for checking that the reconcileStamp is too historic...
if ((self.state.properties.days) && (self.state.reconcileStamp > (now + (self.state.properties.days * msecs.day)))) {
Expand Down

0 comments on commit 7fc3746

Please sign in to comment.