forked from tsai/budibase
3 changed files with 15 additions and 2 deletions
@ -0,0 +1,5 @@ |
|||||
|
const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) |
||||
|
|
||||
|
module.exports = async function delay({ args }) { |
||||
|
await wait(args.time) |
||||
|
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
module.exports = async function filter({ args }) { |
||||
|
const { field, condition, value } = args |
||||
|
switch (condition) { |
||||
|
case "equals": |
||||
|
if (field !== value) return |
||||
|
break |
||||
|
default: |
||||
|
return |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue