@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 +1 -1
- package/src/Schema/Schema.js +2 -2
package/package.json
CHANGED
package/src/Schema/Schema.js
CHANGED
|
@@ -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?');
|