From 7fc3746a19d3ba4854e5b32511277c03a947e4fd Mon Sep 17 00:00:00 2001 From: "Marshall T. Rose" Date: Tue, 10 Apr 2018 05:03:37 -0700 Subject: [PATCH] Missing the right parameter to setTimeUntilReconcile Thanks @NejcZdovc ! --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f231d54..3ba668a 100644 --- a/index.js +++ b/index.js @@ -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)))) {