Not fetching missing products
-
The plugin is not fetching all the products at first run. And later only fetches the products that haven been updated.
To fix this I changed auditRecords()
auditRecords: function() { var local = this.pluck('id'), self = this; return this.getRemoteIds() .then(function(remote) { var add = _.chain(remote).difference(local).compact().value(), remove = _.chain(local).difference(remote).compact().value(); self.enqueue(add); self.dequeue(remove); self.removeGarbage(remove); return self.processQueue({ queue: add, all: true }); }) .done(function() { debug('audit complete'); }) .fail(function(err) { debug('audit failed', err); }); },
Please confirm
- The topic ‘Not fetching missing products’ is closed to new replies.