From e29611f2eb218d8db1b06ef0a158fd7ff1409de8 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 23 Jul 2024 10:10:00 +0200 Subject: [PATCH] Add comment --- packages/server/src/sdk/app/automations/crud.ts | 1 + 1 file changed, 1 insertion(+) 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,