refactor: use step.appKey to recognize delay

This commit is contained in:
Ali BARIN
2022-12-16 19:54:55 +01:00
parent 469050914b
commit 5b51cb30f5

View File

@@ -46,9 +46,7 @@ export const worker = new Worker(
delay: DEFAULT_DELAY_DURATION,
};
const stepApp = await step.getApp();
if (stepApp.key === 'delay') {
if (step.appKey === 'delay') {
const { delayForUnit, delayForValue } = step.parameters;
jobOptions.delay = delayAsMilliseconds(