Call sync observers on error

This commit is contained in:
Mo Bitar
2017-09-27 11:33:56 -05:00
parent 4cd5da6c55
commit e11d42a415

View File

@@ -343,6 +343,10 @@ export default class Sync {
onSyncCompletion(response);
this.syncObservers.forEach(function(mapping){
mapping.callback();
})
// this.$rootScope.$broadcast("sync:error", error);
this.callQueuedCallbacksAndCurrent(callback, {error: "Sync error"});