@onehat/data 1.22.2 → 1.22.3

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.2",
3
+ "version": "1.22.3",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -397,6 +397,9 @@ export default class Repository extends EventEmitter {
397
397
  }
398
398
 
399
399
  getModel() {
400
+ if (this.model) {
401
+ return this.model;
402
+ }
400
403
  if (!this.isUnique) {
401
404
  return this.name;
402
405
  }