mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 01:40:51 +00:00
4.6.7 fix (#752)
This commit is contained in:
@@ -7,7 +7,7 @@ import { createDefaultTeam } from '@fastgpt/service/support/user/team/controller
|
||||
import { exit } from 'process';
|
||||
import { initVectorStore } from '@fastgpt/service/common/vectorStore/controller';
|
||||
import { getInitConfig } from '@/pages/api/common/system/getInitData';
|
||||
import { setUpdateSystemConfigCron, setTrainingQueueCron } from './common/system/cron';
|
||||
import { startCron } from './common/system/cron';
|
||||
|
||||
/**
|
||||
* connect MongoDB and init data
|
||||
@@ -23,8 +23,7 @@ export function connectToDatabase(): Promise<void> {
|
||||
getInitConfig();
|
||||
|
||||
// cron
|
||||
setUpdateSystemConfigCron();
|
||||
setTrainingQueueCron();
|
||||
startCron();
|
||||
|
||||
initRootUser();
|
||||
}
|
||||
|
Reference in New Issue
Block a user