Skip to content

Commit f74e8f2

Browse files
authored
fix: init (#4955)
1 parent 9fb5d05 commit f74e8f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

projects/app/src/instrumentation.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ export async function register() {
3939
systemStartCb();
4040
initGlobalVariables();
4141

42-
try {
43-
await preLoadWorker();
44-
} catch (error) {
45-
console.error('Preload worker error', error);
46-
}
47-
4842
// Connect to MongoDB
4943
await connectMongo(connectionMongo, MONGO_URL);
5044
connectMongo(connectionLogMongo, MONGO_LOG_URL);
5145

5246
//init system config;init vector database;init root user
5347
await Promise.all([getInitConfig(), initVectorStore(), initRootUser(), loadSystemModels()]);
5448

49+
try {
50+
await preLoadWorker();
51+
} catch (error) {
52+
console.error('Preload worker error', error);
53+
}
54+
5555
// 异步加载
5656
initSystemPluginGroups();
5757
initAppTemplateTypes();

0 commit comments

Comments
 (0)