takes copy of all docs found by ID in case they were memoized

This commit is contained in:
James
2020-10-21 17:58:36 -04:00
parent 05a06a9aa8
commit 221ec0bb10

View File

@@ -75,6 +75,9 @@ async function findByID(args) {
return null;
}
// Clone the result - it may have come back memoized
result = JSON.parse(JSON.stringify(result));
result.id = result._id;
// /////////////////////////////////////