@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 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
- const updatedEntity = Object.assign({}, entity, updatedRow);
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
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@ruiapp/rapid-core",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
6
7
  "keywords": [],
7
8
  "author": "Fossil",
8
9
  "license": "MIT",
@@ -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
- const updatedEntity = Object.assign({}, entity, updatedRow);
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) {