zone updates
This commit is contained in:
@@ -19,6 +19,7 @@ const MainModel = <T>(
|
||||
authSource: process.env.MONGO_AUTH_DB || 'admin', // Default to 'admin' if not provided
|
||||
maxPoolSize: 50,
|
||||
};
|
||||
console.log('authOptions: ', authOptions);
|
||||
// Check if the connection already exists
|
||||
if (connections[db]) {
|
||||
return connections[db].model<T>(modelName, schema, collectionName);
|
||||
|
||||
@@ -6,6 +6,8 @@ export interface zoneSchema extends Document {
|
||||
createBy: mongoose.Types.ObjectId
|
||||
points: []
|
||||
layer: Number
|
||||
viewPortCenter: []
|
||||
viewPortposition: []
|
||||
|
||||
}
|
||||
|
||||
@@ -16,6 +18,8 @@ const zoneSchema: Schema = new Schema({
|
||||
createBy: { type: Schema.Types.ObjectId, ref: "Users", },
|
||||
points: { type: Array },
|
||||
layer: { type: Number, required: true },
|
||||
viewPortCenter: { type: Array, required: true },
|
||||
viewPortposition: { type: Array, required: true },
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user