forked from UKSOURCE/cms.hailearning.edu.vn
fix: on/off tab in home page
This commit is contained in:
@@ -349,5 +349,8 @@ const HomeSchema = new Schema(
|
||||
},
|
||||
);
|
||||
|
||||
// Đảm bảo chỉ có 1 document duy nhất (singleton pattern)
|
||||
HomeSchema.index({ createdAt: 1 }, { unique: false });
|
||||
|
||||
module.exports = mongoose.model("Home", HomeSchema);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user