Skip to content

Commit 5a71c4f

Browse files
author
Cookiezaurs
committed
[core] on findAndModify+remove transform object to return in expected format
1 parent 566313e commit 5a71c4f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/pluginManager.js

+3
Original file line numberDiff line numberDiff line change
@@ -2344,6 +2344,9 @@ var pluginManager = function pluginManager() {
23442344
}
23452345
return function(err, res) {
23462346
if (res) {
2347+
if (!res.value && data.name === "findAndModify" && data && data.args && data.args[3] && data.args[3].remove) {
2348+
res = {"value": res};
2349+
}
23472350
if (!res.result) {
23482351
res.result = {};
23492352
}

0 commit comments

Comments
 (0)