MCPcopy Create free account
hub / github.com/dresende/node-orm2 / saveError

Function saveError

lib/Instance.js:92–102  ·  view source on GitHub ↗
(cb, err)

Source from the content-addressed store, hash-verified

90 });
91 };
92 var saveError = function (cb, err) {
93 instance_saving = false;
94
95 emitEvent("save", err, instance);
96
97 Hook.trigger(instance, opts.hooks.afterSave, false);
98
99 if (typeof cb === "function") {
100 cb(err, instance);
101 }
102 };
103 var saveInstance = function (saveOptions, cb) {
104 // what this condition means:
105 // - If the instance is in state mode

Callers 4

handleValidationsFunction · 0.85
saveInstanceFunction · 0.85
saveNewFunction · 0.85
savePersistedFunction · 0.85

Calls 2

emitEventFunction · 0.85
cbFunction · 0.85

Tested by

no test coverage detected