1
0
Fork 0
mirror of synced 2024-09-08 21:51:58 +12:00

check collection actually exists

This commit is contained in:
Peter Clement 2023-05-23 16:12:20 +01:00
parent 8d3a5307ed
commit 6818e4debb

View file

@ -45,8 +45,14 @@ export const definition: AutomationStepSchema = {
} }
export async function run({ inputs }: AutomationStepInput) { export async function run({ inputs }: AutomationStepInput) {
if (!inputs.collection) {
return {
success: false,
}
} else {
return { return {
success: true, success: true,
value: inputs.collection, value: inputs.collection,
} }
}
} }