1
0
Fork 0
mirror of synced 2024-07-11 09:15:48 +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) {
return {
success: true,
value: inputs.collection,
if (!inputs.collection) {
return {
success: false,
}
} else {
return {
success: true,
value: inputs.collection,
}
}
}