1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

Add comment

This commit is contained in:
Adria Navarro 2024-07-23 10:10:00 +02:00
parent cc77cea269
commit e29611f2eb

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,