Add comment

This commit is contained in:
Adria Navarro 2024-07-23 10:10:00 +02:00
parent cc77cea269
commit e29611f2eb
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ async function checkForWebhooks({ oldAuto, newAuto }: any) {
} }
function trimUnexpectedObjectFields<T extends Automation>(automation: T): T { function trimUnexpectedObjectFields<T extends Automation>(automation: T): T {
// This will ensure all the automation fields (and nothing else) is mapped to the result
const allRequired: RequiredKeys<Automation> = { const allRequired: RequiredKeys<Automation> = {
_id: automation._id, _id: automation._id,
_rev: automation._rev, _rev: automation._rev,