tmp
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import mongoose from 'mongoose';
|
import mongoose from 'mongoose';
|
||||||
import { EscortRecordSchema } from "./schema/escort_record.js"
|
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 config from '../conf.json' with { type: 'json' };
|
||||||
import logger from '../utils/logger.js';
|
import logger from '../utils/logger.js';
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ class MongoDBSchema {
|
|||||||
this.dbConnection = null;
|
this.dbConnection = null;
|
||||||
this.User = null;
|
this.User = null;
|
||||||
this.EscortRecord = null;
|
this.EscortRecord = null;
|
||||||
this.Hospital = null;
|
this.Organization = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
@@ -38,7 +38,6 @@ class MongoDBSchema {
|
|||||||
);
|
);
|
||||||
|
|
||||||
this.EscortRecord = this.dbConnection.model('escort_record', EscortRecordSchema)
|
this.EscortRecord = this.dbConnection.model('escort_record', EscortRecordSchema)
|
||||||
this.Hospital = this.dbConnection.model('hospital', HospitalSchema)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user