From b378af4ba7fcbf0bbb3a803892b564684854f7b7 Mon Sep 17 00:00:00 2001 From: lik Date: Sun, 31 May 2026 12:52:30 +0800 Subject: [PATCH] tmp --- models/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/models/index.js b/models/index.js index 4a21423..cd04c9e 100644 --- a/models/index.js +++ b/models/index.js @@ -2,7 +2,7 @@ import mongoose from 'mongoose'; import { EscortRecordSchema } from "./schema/escort_record.js" -import { HospitalSchema } from "./schema/org.js" +import { OrganizationSchema } from "./schema/org.js" import config from '../conf.json' with { type: 'json' }; import logger from '../utils/logger.js'; @@ -11,7 +11,7 @@ class MongoDBSchema { this.dbConnection = null; this.User = null; this.EscortRecord = null; - this.Hospital = null; + this.Organization = null; } init() { @@ -38,7 +38,6 @@ class MongoDBSchema { ); this.EscortRecord = this.dbConnection.model('escort_record', EscortRecordSchema) - this.Hospital = this.dbConnection.model('hospital', HospitalSchema) } }