MCPcopy
hub / github.com/strongloop/loopback / replicateServerToLocal

Function replicateServerToLocal

test/replication.rest.test.js:682–690  ·  view source on GitHub ↗
(next)

Source from the content-addressed store, hash-verified

680 }
681
682 function replicateServerToLocal(next) {
683 ServerUser.replicate(LocalUser, function(err, conflicts) {
684 if (err) return next(err);
685
686 if (conflicts.length) return next(conflictError(conflicts));
687
688 next();
689 });
690 }
691
692 function conflictError(conflicts) {
693 const err = new Error('Unexpected conflicts\n' +

Callers 1

Calls 2

conflictErrorFunction · 0.85
nextFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…