@kipicore/dbcore 1.1.322 → 1.1.325

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.
@@ -1331,3 +1331,9 @@ export declare enum APP_ANALYTICS_EVENT_ERROR_MESSAGES {
1331
1331
  UPDATE_FAIL = "Unable to update data!",
1332
1332
  DELETE_FAIL = "Unable to delete data!"
1333
1333
  }
1334
+ export declare enum INTERNAL_MARK_ERROR_MESSAGES {
1335
+ NOT_FOUND = "Internal mark not found!",
1336
+ ALREADY_EXISTS = "Internal mark already exists!",
1337
+ NOT_AUTHORIZED = "You are not authorized to perform this action!",
1338
+ INVALID_DATA = "Invalid internal mark data provided!"
1339
+ }
@@ -928,3 +928,9 @@ export declare enum APP_ANALYTICS_EVENT_SUCCESS_MESSAGES {
928
928
  UPDATE_SUCCESS = "Data updated successfully",
929
929
  DELETE_SUCCESS = "Data deleted successfully"
930
930
  }
931
+ export declare enum INTERNAL_MARK_SUCCESS_MESSAGES {
932
+ CREATE_SUCCESS = "Internal mark created successfully!",
933
+ GET_SUCCESS = "Internal mark retrieved successfully!",
934
+ UPDATE_SUCCESS = "Internal mark updated successfully!",
935
+ UPSERT_SUCCESS = "Internal marks upserted successfully!"
936
+ }
@@ -57,7 +57,7 @@ class LectureModel extends sequelize_1.Model {
57
57
  throw new Error(errorMessages_1.LECTURE_ERROR_MESSAGES.INVALID_LECTURE_TIME);
58
58
  }
59
59
  }
60
- if (lecture.classRoomId && lecture?.title?.toLowerCase()?.includes('lecture')) {
60
+ if (lecture.classRoomId) {
61
61
  const classRoom = await ClassRoomModel.findByPk(lecture.classRoomId);
62
62
  if (!classRoom)
63
63
  throw new Error(errorMessages_1.CLASSROOM_ERROR_MESSAGES.NOT_FOUND);
@@ -91,7 +91,7 @@ class LectureModel extends sequelize_1.Model {
91
91
  };
92
92
  if (lecture.id)
93
93
  where = { ...where, id: { [sequelize_1.Op.ne]: lecture.id } };
94
- if (lecture.classRoomId) {
94
+ if (lecture.classRoomId && lecture?.title?.toLowerCase()?.includes('lecture')) {
95
95
  const classRoomConflict = await LectureModel.findOne({
96
96
  where: { ...where, classRoomId: lecture.classRoomId },
97
97
  ...options,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.322",
3
+ "version": "1.1.325",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",