gateway 구분중

This commit is contained in:
2023-08-18 16:20:10 +00:00
parent 87c239610a
commit 635d7f167d
8 changed files with 89 additions and 11 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { Schema, model } from "mongoose";
import { Mongoose, Schema, model } from "mongoose";
export interface IServerConfig {
allowLogin: boolean;
@@ -20,4 +20,4 @@ export const ServerConfig = new Schema<IServerConfig>({
;
//단일 document로 관리
export default model<IServerConfig>('ServerConfig', ServerConfig);
export default (conn:Mongoose)=>conn.model<IServerConfig>('ServerConfig', ServerConfig);