identity-admin 1.26.18 → 1.26.19

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.
@@ -34,7 +34,11 @@ class SchemaGenerator {
34
34
  populatedString = modelAndPopulatedString[1];
35
35
  }
36
36
  if (fieldType === helpers_1.FieldTypes.DATE) {
37
- model[field].withTime = model[field].withTime ? model[field].withTime : false;
37
+ var defaultWithTime = false;
38
+ if (model[field].withTime === undefined && (field === 'createdAt' || field === 'updatedAt')) {
39
+ defaultWithTime = true;
40
+ }
41
+ model[field].withTime = model[field].withTime ? model[field].withTime : defaultWithTime;
38
42
  }
39
43
  else if (fieldType === helpers_1.FieldTypes.ARRAY) {
40
44
  model[field].required = schema[field].caster.isRequired;
@@ -61,11 +65,7 @@ class SchemaGenerator {
61
65
  model[field].type = model[field].type ? model[field].type : fieldType;
62
66
  model[field].defaultValue = schema[field].defaultValue ? schema[field].defaultValue : undefined;
63
67
  model[field].required = model[field].required ? model[field].required : schemaField.isRequired ? schemaField.isRequired : false;
64
- model[field].apiRoute = model[field].apiRoute
65
- ? model[field].apiRoute
66
- : schemaField.options.ref
67
- ? this.getRefPath(schemaField.options.ref, configurations)
68
- : undefined;
68
+ model[field].apiRoute = model[field].apiRoute ? model[field].apiRoute : schemaField.options.ref ? this.getRefPath(schemaField.options.ref, configurations) : undefined;
69
69
  model[field].enumValues =
70
70
  model[field].type === helpers_1.FieldTypes.ENUM || model[field].arrayType === helpers_1.FieldTypes.ENUM
71
71
  ? model[field].enumValues
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "identity-admin",
3
- "version": "1.26.18",
3
+ "version": "1.26.19",
4
4
  "description": "",
5
5
  "main": "lib/Dashboard.js",
6
6
  "types": "lib/Dashbord.d.ts",