@kipicore/dbcore 1.1.275 → 1.1.277

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.
@@ -272,6 +272,7 @@ const validateStandardDateConflict = async (examGroup) => {
272
272
  const conflict = await ExamGroupModel.findOne({
273
273
  instituteId: examGroup.instituteId,
274
274
  ...(examGroup.id && { id: { $ne: examGroup.id } }),
275
+ ...(examGroup.academicCalendarId && { academicCalendarId: examGroup.academicCalendarId }),
275
276
  standards: { $in: examGroup.standards },
276
277
  startDate: { $lte: examGroup.endDate },
277
278
  endDate: { $gte: examGroup.startDate },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.275",
3
+ "version": "1.1.277",
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",