pd-redis-childize
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -7,9 +7,8 @@ 'use strict'; | ||
var oldRemove = Child.remove; | ||
Child.remove = function (sid, option) { | ||
var opt = option || {}; | ||
var oldMultis = opt.multis || function (multis) { | ||
Child.remove = function (sid, multiGen) { | ||
var oldMultis = multiGen || function (multis) { | ||
return multis; | ||
}; | ||
var sidStr = sid + ''; | ||
var multiGen; | ||
var multiG; | ||
return q.Promise(function (resolve) { | ||
@@ -22,3 +21,3 @@ resolve( | ||
}).then(function (fields) { | ||
multiGen = fields[0] ? function (multis) { | ||
multiG = fields[0] ? function (multis) { | ||
var mGenArgs = arguments; | ||
@@ -34,3 +33,3 @@ var relationshipName = nm.childOf(Child.modelName(), Parent.modelName(), fields[0]); | ||
}).then(function () { | ||
return oldRemove.call(Child, sid, multiGen); | ||
return oldRemove.call(Child, sid, multiG); | ||
}); | ||
@@ -37,0 +36,0 @@ }; |
{ | ||
"name": "pd-redis-childize", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "To make a record model relate to its parent record model", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
12563
265