@kipicore/dbcore 1.1.318 → 1.1.320
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.
|
@@ -5,4 +5,10 @@ export let password: string | undefined;
|
|
|
5
5
|
export let database: string | undefined;
|
|
6
6
|
export function dbLogging(message: any): void;
|
|
7
7
|
export let dialect: string;
|
|
8
|
+
export namespace pool {
|
|
9
|
+
let max: number;
|
|
10
|
+
let min: number;
|
|
11
|
+
let acquire: number;
|
|
12
|
+
let idle: number;
|
|
13
|
+
}
|
|
8
14
|
export let dialectOptions: {};
|
|
@@ -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) {
|
|
60
|
+
if (lecture.classRoomId && lecture?.title?.toLowerCase()?.includes('lecture')) {
|
|
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);
|
package/package.json
CHANGED