From e3c138ffd2d221f3be73616620d7520f3283fa7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Thu, 11 Jul 2024 12:44:09 +0200 Subject: [PATCH] refactor(core): Remove unused Sentry report from `WaitTracker` (no-changelog) (#10008) --- packages/cli/src/WaitTracker.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/cli/src/WaitTracker.ts b/packages/cli/src/WaitTracker.ts index d3f3f780f9..36fb4f9900 100644 --- a/packages/cli/src/WaitTracker.ts +++ b/packages/cli/src/WaitTracker.ts @@ -75,21 +75,6 @@ export class WaitTracker { for (const execution of executions) { const executionId = execution.id; if (this.waitingExecutions[executionId] === undefined) { - if (!(execution.waitTill instanceof Date)) { - // n8n expects waitTill to be a date object - // but for some reason it's not being converted - // we are handling this like this since it seems to address the issue - // for some users, as reported by Jon when using a custom image. - // Once we figure out why this it not a Date object, we can remove this. - ErrorReporter.error('Wait Till is not a date object', { - extra: { - variableType: typeof execution.waitTill, - }, - }); - if (typeof execution.waitTill === 'string') { - execution.waitTill = new Date(execution.waitTill); - } - } const triggerTime = execution.waitTill!.getTime() - new Date().getTime(); this.waitingExecutions[executionId] = { executionId,