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

Function nextHook

lib/Instance.js:175–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173 };
174 var waitHooks = function (hooks, next) {
175 var nextHook = function () {
176 if (hooks.length === 0) {
177 return next();
178 }
179 Hook.wait(instance, opts.hooks[hooks.shift()], function (err) {
180 if (err) {
181 return next(err);
182 }
183
184 return nextHook();
185 });
186 };
187
188 return nextHook();
189 };

Callers 1

waitHooksFunction · 0.85

Calls 1

nextFunction · 0.70

Tested by

no test coverage detected