@cuboapp/api-backend 1.0.6 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuboapp/api-backend",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Backend Api for CuboApp",
5
5
  "main": "src/index.ts",
6
6
  "repository": "git@github.com:cuboapp/api-backend.git",
@@ -42,7 +42,8 @@ export class ApiHelpersConvert<T extends CuboApiEntitiesMap<T>> {
42
42
 
43
43
  const rowValue = get(row, initialValueKey, undefined)
44
44
 
45
- if (!withEl.entity.id && withEl.entity.alias === 'users') {
45
+ // todo: fix fields from core
46
+ if (!withEl.entity && withEl.entity.alias === 'users') {
46
47
  userFieldsPrepared.push(withEl.full_key)
47
48
 
48
49
  switch (rowValue) {