mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
refactor(core): Remove unused Sentry report from WaitTracker
(no-changelog) (#10008)
This commit is contained in:
parent
57dfefd0f6
commit
e3c138ffd2
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue