mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
v4.6.2-alpah (#511)
This commit is contained in:
@@ -4,7 +4,7 @@ import { initPg } from '@fastgpt/service/common/pg';
|
||||
import { MongoUser } from '@fastgpt/service/support/user/schema';
|
||||
import { connectMongo } from '@fastgpt/service/common/mongo/init';
|
||||
import { hashStr } from '@fastgpt/global/common/string/tools';
|
||||
import { getInitConfig, initGlobal } from '@/pages/api/system/getInitData';
|
||||
import { getInitConfig } from '@/pages/api/system/getInitData';
|
||||
import { createDefaultTeam } from '@fastgpt/service/support/user/team/controller';
|
||||
import { exit } from 'process';
|
||||
|
||||
@@ -14,7 +14,6 @@ import { exit } from 'process';
|
||||
export function connectToDatabase(): Promise<void> {
|
||||
return connectMongo({
|
||||
beforeHook: () => {
|
||||
initGlobal();
|
||||
getInitConfig();
|
||||
},
|
||||
afterHook: () => {
|
||||
|
Reference in New Issue
Block a user