fix: forces depth to 0 in update operation

This commit is contained in:
James
2021-02-23 10:38:56 -05:00
parent a8e2cc11af
commit 40f5901526

View File

@@ -107,7 +107,7 @@ async function update(incomingArgs: Arguments): Promise<Document> {
docWithLocales = JSON.parse(docWithLocales);
const originalDoc = await performFieldOperations(collectionConfig, {
depth,
depth: 0,
req,
data: docWithLocales,
hook: 'afterRead',