@kipicore/dbcore 1.1.711 → 1.1.712
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/mongodb/sportDataApproveModel.js +1 -1
- package/dist/models/mongodb/sportInfoModel.js +1 -1
- package/dist/models/mongodb/sportsAcademyModel.js +1 -1
- package/dist/models/mongodb/studentSportTestModel.js +1 -1
- package/dist/models/mongodb/userAcademyMetaModel.js +1 -1
- package/dist/models/mongodb/userAmenityModel.js +1 -1
- package/package.json +1 -1
|
@@ -113,5 +113,5 @@ const sportDataApproveSchema = new mongoose_1.Schema({
|
|
|
113
113
|
versionKey: false,
|
|
114
114
|
});
|
|
115
115
|
sportDataApproveSchema.index({ moduleType: 1, status: 1 });
|
|
116
|
-
const SportDataApproveModel = mongoose_1.default.model('sportDataApprove', sportDataApproveSchema, 'sport_data_approves');
|
|
116
|
+
const SportDataApproveModel = mongoose_1.default.models['sportDataApprove'] || mongoose_1.default.model('sportDataApprove', sportDataApproveSchema, 'sport_data_approves');
|
|
117
117
|
exports.default = SportDataApproveModel;
|
|
@@ -73,5 +73,5 @@ const sportInfoSchema = new mongoose_1.Schema({
|
|
|
73
73
|
timestamps: true,
|
|
74
74
|
versionKey: false,
|
|
75
75
|
});
|
|
76
|
-
const SportInfoModel = mongoose_1.default.model('sportInfo', sportInfoSchema, 'sport_infos');
|
|
76
|
+
const SportInfoModel = mongoose_1.default.models['sportInfo'] || mongoose_1.default.model('sportInfo', sportInfoSchema, 'sport_infos');
|
|
77
77
|
exports.default = SportInfoModel;
|
|
@@ -85,5 +85,5 @@ const sportsAcademySchema = new mongoose_1.Schema({
|
|
|
85
85
|
versionKey: false,
|
|
86
86
|
virtuals: true,
|
|
87
87
|
});
|
|
88
|
-
const SportsAcademyModel = mongoose_1.default.model('sportsacademy', sportsAcademySchema);
|
|
88
|
+
const SportsAcademyModel = mongoose_1.default.models['sportsacademy'] || mongoose_1.default.model('sportsacademy', sportsAcademySchema);
|
|
89
89
|
exports.default = SportsAcademyModel;
|
|
@@ -64,5 +64,5 @@ const studentSportTestSchema = new mongoose_1.Schema({
|
|
|
64
64
|
versionKey: false,
|
|
65
65
|
virtuals: true,
|
|
66
66
|
});
|
|
67
|
-
const StudentSportTestModel = mongoose_1.default.model('studentSportTest', studentSportTestSchema);
|
|
67
|
+
const StudentSportTestModel = mongoose_1.default.models['studentSportTest'] || mongoose_1.default.model('studentSportTest', studentSportTestSchema);
|
|
68
68
|
exports.default = StudentSportTestModel;
|
|
@@ -105,5 +105,5 @@ userAcademyMetaSchema.index({
|
|
|
105
105
|
userType: 1,
|
|
106
106
|
status: 1,
|
|
107
107
|
});
|
|
108
|
-
const UserAcademyMeta = mongoose_1.default.model('userAcademyMeta', userAcademyMetaSchema);
|
|
108
|
+
const UserAcademyMeta = mongoose_1.default.models['userAcademyMeta'] || mongoose_1.default.model('userAcademyMeta', userAcademyMetaSchema);
|
|
109
109
|
exports.default = UserAcademyMeta;
|
|
@@ -69,5 +69,5 @@ const userAmenitySchema = new mongoose_1.Schema({
|
|
|
69
69
|
versionKey: false,
|
|
70
70
|
virtuals: true,
|
|
71
71
|
});
|
|
72
|
-
const UserAmenityModel = mongoose_1.default.model('useramenity', userAmenitySchema);
|
|
72
|
+
const UserAmenityModel = mongoose_1.default.models['useramenity'] || mongoose_1.default.model('useramenity', userAmenitySchema);
|
|
73
73
|
exports.default = UserAmenityModel;
|
package/package.json
CHANGED