mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-13 05:47:31 -08: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
|
||||
initEvents();
|
||||
|
||||
const workflow = await Db.collections.Workflow.findOne({
|
||||
void Db.collections.Workflow.findOne({
|
||||
select: ['createdAt'],
|
||||
order: { createdAt: 'ASC' },
|
||||
where: {},
|
||||
});
|
||||
await InternalHooksManager.getInstance().onServerStarted(diagnosticInfo, workflow?.createdAt);
|
||||
}).then(async (workflow) =>
|
||||
InternalHooksManager.getInstance().onServerStarted(diagnosticInfo, workflow?.createdAt),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue