mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 04:06:18 +00:00

* app list ui * feat: photo view * perf: app dataset filter * perf: app dataset filter * fix: chat recently apps * perf: workflow header phone * default templates * default templates * fix: input guide phone * fix: i18n * team chat history * remove code * perf: mongo connection * log level
13 lines
218 B
TypeScript
13 lines
218 B
TypeScript
import mongoose from 'mongoose';
|
|
|
|
export default mongoose;
|
|
export * from 'mongoose';
|
|
|
|
export const connectionMongo = (() => {
|
|
if (!global.mongodb) {
|
|
global.mongodb = mongoose;
|
|
}
|
|
|
|
return global.mongodb;
|
|
})();
|