@kipicore/dbcore 1.1.89 → 1.1.91
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.
|
@@ -525,7 +525,7 @@ const addDocsDetailsHook = async (subjectIndexList, where = {}, options = {}) =>
|
|
|
525
525
|
let completedChapterLastLecture = [];
|
|
526
526
|
if (subject.assignedUsers && subject.assignedUsers.length && options?.reqUser?.type === app_1.USER_TYPES.STUDENT) {
|
|
527
527
|
const lectureList = await lectureModel_1.default.findAll({
|
|
528
|
-
where: { subject: { [sequelize_1.Op.in]: [subject.subject] } },
|
|
528
|
+
where: { subject: { [sequelize_1.Op.in]: [subject.subject] }, checkedOutAt: { [sequelize_1.Op.not]: null }, checkedInAt: { [sequelize_1.Op.not]: null } },
|
|
529
529
|
order: [['checkedInAt', 'DESC']],
|
|
530
530
|
limit: 1,
|
|
531
531
|
});
|
package/package.json
CHANGED