@kipicore/dbcore 1.1.153 → 1.1.155

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.
@@ -558,9 +558,6 @@ function formatDateIfNeeded(value) {
558
558
  function isStrictISODate(val) {
559
559
  return /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d+)?Z?)?$/.test(val);
560
560
  }
561
- if (value instanceof Date) {
562
- return value.toLocaleDateString('en-GB');
563
- }
564
561
  if (typeof value === 'string' && isStrictISODate(value)) {
565
562
  const parsed = new Date(value);
566
563
  if (!isNaN(parsed.getTime())) {
@@ -6,4 +6,5 @@ export interface IGenarateIdCardModelAttributes extends IDefaultAttributes, Docu
6
6
  content?: string;
7
7
  instituteId: string;
8
8
  academicCalendarId: string;
9
+ isDefault: boolean;
9
10
  }
@@ -51,6 +51,11 @@ const GenerateIdCardSchema = new mongoose_1.Schema({
51
51
  type: String,
52
52
  required: false,
53
53
  },
54
+ isDefault: {
55
+ type: Boolean,
56
+ default: false,
57
+ required: false,
58
+ },
54
59
  }, {
55
60
  timestamps: true,
56
61
  versionKey: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.153",
3
+ "version": "1.1.155",
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",