@ruiapp/rapid-core 0.1.23 → 0.1.24
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 +2 -1
- package/package.json +2 -1
- package/src/dataAccess/entityManager.ts +2 -1
package/dist/index.js
CHANGED
|
@@ -2171,7 +2171,8 @@ async function updateEntityById(server, dataAccessor, options, plugin) {
|
|
|
2171
2171
|
if (Object.keys(row).length) {
|
|
2172
2172
|
updatedRow = await dataAccessor.updateById(id, row);
|
|
2173
2173
|
}
|
|
2174
|
-
|
|
2174
|
+
let updatedEntity = mapDbRowToEntity(model, updatedRow, false);
|
|
2175
|
+
updatedEntity = Object.assign({}, entity, updatedEntity);
|
|
2175
2176
|
// save many-relation properties
|
|
2176
2177
|
for (const property of manyRelationPropertiesToUpdate) {
|
|
2177
2178
|
const relatedEntities = [];
|
package/package.json
CHANGED
|
@@ -602,7 +602,8 @@ async function updateEntityById(
|
|
|
602
602
|
if (Object.keys(row).length) {
|
|
603
603
|
updatedRow = await dataAccessor.updateById(id, row);
|
|
604
604
|
}
|
|
605
|
-
|
|
605
|
+
let updatedEntity = mapDbRowToEntity(model, updatedRow, false);
|
|
606
|
+
updatedEntity = Object.assign({}, entity, updatedEntity);
|
|
606
607
|
|
|
607
608
|
// save many-relation properties
|
|
608
609
|
for (const property of manyRelationPropertiesToUpdate) {
|