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

Function save

lib/persisted-model.js:451–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449
450 // then save
451 function save() {
452 inst.trigger('save', function(saveDone) {
453 inst.trigger('update', function(updateDone) {
454 Model.upsert(inst, function(err) {
455 inst._initProperties(data);
456 updateDone.call(inst, function() {
457 saveDone.call(inst, function() {
458 callback(err, inst);
459 });
460 });
461 });
462 }, data);
463 }, data);
464 }
465 };
466
467 /**

Callers 1

persisted-model.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…