@onehat/data 1.8.29 → 1.8.30

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.8.29",
3
+ "version": "1.8.30",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -190,8 +190,8 @@ export default class Schema extends EventEmitter {
190
190
  if (this.isDestroyed) {
191
191
  throw Error('this.getProperty is no longer valid. Schema has been destroyed.');
192
192
  }
193
- const property = _.find(this.properties, (propertyDefinition) => {
194
- propertyDefinition.name === propertyName;
193
+ const property = _.find(this.model.properties, (propertyDefinition) => {
194
+ return propertyDefinition.name === propertyName;
195
195
  });
196
196
  if (!property) {
197
197
  throw new Error('Property ' + propertyName + ' not found. Are you sure you initialized this Entity?');