fix(core): Do not block app startup by telemetry (no-changelog) (#5387)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-02-07 12:10:16 +01:00 committed by GitHub
parent 26b69b5ffc
commit 58b0cf66b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),
);
} }