eservices-core 1.0.536 → 1.0.538
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/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* eservices-core v1.0.
|
|
2
|
+
* eservices-core v1.0.538
|
|
3
3
|
* (c) 2023 ESERVICES
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
@@ -2931,7 +2931,7 @@ class historyService {
|
|
|
2931
2931
|
const newHistory = res.history.map(elem => {
|
|
2932
2932
|
if (!elem.changes)
|
|
2933
2933
|
return elem;
|
|
2934
|
-
const newChanges = elem.changes.map((elem) => (Object.assign(Object.assign({}, elem), { oldValue: elem.originalValue })));
|
|
2934
|
+
const newChanges = elem.changes.map((elem) => (Object.assign(Object.assign({}, elem), { oldValue: elem.originalValue, name: elem.fieldName })));
|
|
2935
2935
|
return Object.assign(Object.assign({}, elem), { changes: newChanges });
|
|
2936
2936
|
});
|
|
2937
2937
|
return Object.assign(Object.assign({}, res), { history: newHistory });
|