rez_core 4.0.210 → 4.0.212
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.
- package/dist/module/meta/service/entity-dynamic.service.js +1 -1
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/module/meta/service/resolver.service.js +4 -1
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/meta/service/entity-dynamic.service.ts +1 -1
- package/src/module/meta/service/resolver.service.ts +6 -1
package/package.json
CHANGED
|
@@ -559,7 +559,7 @@ export class EntityDynamicService {
|
|
|
559
559
|
);
|
|
560
560
|
|
|
561
561
|
const columns = validAttributes
|
|
562
|
-
.map((attr) =>
|
|
562
|
+
.map((attr) => attr.attribute_key)
|
|
563
563
|
.join(', ');
|
|
564
564
|
const selectQuery = `SELECT ${columns} FROM \`${dataSource}\` WHERE id = $1`;
|
|
565
565
|
|
|
@@ -91,12 +91,17 @@ export class ResolverService {
|
|
|
91
91
|
attr.element_type === 'date' ||
|
|
92
92
|
attr.element_type === 'datetime'
|
|
93
93
|
) {
|
|
94
|
-
|
|
94
|
+
// 👇 Explicitly define input format to avoid deprecation warning
|
|
95
|
+
const dateValue = moment(codeValue, "DD-MM-YYYY", true).utcOffset('+05:30');
|
|
96
|
+
|
|
95
97
|
if (dateValue.isValid()) {
|
|
96
98
|
resolvedEntityData[field] =
|
|
97
99
|
attr.element_type === 'date'
|
|
98
100
|
? dateValue.format('DD-MMM-YYYY')
|
|
99
101
|
: dateValue.format('DD-MMM-YYYY HH:mm:ss');
|
|
102
|
+
} else {
|
|
103
|
+
// fallback: return original value
|
|
104
|
+
resolvedEntityData[field] = codeValue;
|
|
100
105
|
}
|
|
101
106
|
}
|
|
102
107
|
|