eslint: add no-shadow
This commit is contained in:
+2
-2
@@ -81,8 +81,8 @@ async function createJobs(app, schedulerConfig) {
|
||||
const cronJob = CronJob.from({
|
||||
cronTime,
|
||||
onTick: async () => {
|
||||
const [error] = await safe(runTask(appId, taskName)); // put the app id in closure, so we don't use the outdated app object by mistake
|
||||
if (error) debug(`could not run task ${taskName} : ${error.message}`);
|
||||
const [taskError] = await safe(runTask(appId, taskName)); // put the app id in closure, so we don't use the outdated app object by mistake
|
||||
if (taskError) debug(`could not run task ${taskName} : ${taskError.message}`);
|
||||
},
|
||||
start: true,
|
||||
timeZone: tz
|
||||
|
||||
Reference in New Issue
Block a user