check collection actually exists
This commit is contained in:
parent
8d3a5307ed
commit
6818e4debb
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue