@kipicore/dbcore 1.1.134 → 1.1.135
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.
|
@@ -34,7 +34,7 @@ const down = async (queryInterface, Sequelize) => {
|
|
|
34
34
|
if (table.batch_type) {
|
|
35
35
|
await queryInterface.removeColumn('subject_has_fee', 'batch_type');
|
|
36
36
|
}
|
|
37
|
-
if (table.
|
|
37
|
+
if (table.academic_calendar_id) {
|
|
38
38
|
await queryInterface.removeColumn('subject_has_fee', 'academic_calendar_id');
|
|
39
39
|
}
|
|
40
40
|
};
|
|
@@ -80,17 +80,16 @@ class TypeManagementModel extends sequelize_1.Model {
|
|
|
80
80
|
throw new Error(errorMessages_1.INSTITUTE_ERROR_MESSAGES.NOT_FOUND);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
if (type.title && type.instituteId && type.type) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
83
|
+
// if (type.title && type.instituteId && type.type) {
|
|
84
|
+
// const typeExist = await TypeManagementModel.findOne({
|
|
85
|
+
// where: {
|
|
86
|
+
// title: type.title,
|
|
87
|
+
// instituteId: type.instituteId,
|
|
88
|
+
// type: type.type,
|
|
89
|
+
// },
|
|
90
|
+
// });
|
|
91
|
+
// if (typeExist) throw new Error(TYPE_MANAGEMENT_ERROR_MESSAGES.TYPE_ALREADY_EXISTS);
|
|
92
|
+
// }
|
|
94
93
|
};
|
|
95
94
|
TypeManagementModel.beforeCreate(beforeCreateOrUpdateHook);
|
|
96
95
|
TypeManagementModel.beforeBulkUpdate(async (options) => {
|
package/package.json
CHANGED