mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-20 23:07:32 -07:00
fix(core): Do not block app startup by telemetry (no-changelog) (#5387)
This commit is contained in:
parent
26b69b5ffc
commit
58b0cf66b5
|
@ -1494,10 +1494,11 @@ export async function start(): Promise<void> {
|
||||||
// Set up event handling
|
// Set up event handling
|
||||||
initEvents();
|
initEvents();
|
||||||
|
|
||||||
const workflow = await Db.collections.Workflow.findOne({
|
void Db.collections.Workflow.findOne({
|
||||||
select: ['createdAt'],
|
select: ['createdAt'],
|
||||||
order: { createdAt: 'ASC' },
|
order: { createdAt: 'ASC' },
|
||||||
where: {},
|
where: {},
|
||||||
});
|
}).then(async (workflow) =>
|
||||||
await InternalHooksManager.getInstance().onServerStarted(diagnosticInfo, workflow?.createdAt);
|
InternalHooksManager.getInstance().onServerStarted(diagnosticInfo, workflow?.createdAt),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue