@onehat/data 1.22.37 → 1.22.38

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": "@onehat/data",
3
- "version": "1.22.37",
3
+ "version": "1.22.38",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -175,7 +175,7 @@ class OneBuildRepository extends AjaxRepository {
175
175
  */
176
176
  _getReloadEntityParams(entity) {
177
177
  const params = { conditions: {}, };
178
- params.conditions[entity.schema.name + '.id'] = entity.id;
178
+ params.conditions[entity.getModel() + '.id'] = entity.id;
179
179
  return params;
180
180
  }
181
181