diff --git a/packages/server/src/sdk/app/automations/crud.ts b/packages/server/src/sdk/app/automations/crud.ts index bb53a75cf8..418da02c1c 100644 --- a/packages/server/src/sdk/app/automations/crud.ts +++ b/packages/server/src/sdk/app/automations/crud.ts @@ -255,6 +255,7 @@ async function checkForWebhooks({ oldAuto, newAuto }: any) { } function trimUnexpectedObjectFields(automation: T): T { + // This will ensure all the automation fields (and nothing else) is mapped to the result const allRequired: RequiredKeys = { _id: automation._id, _rev: automation._rev,