@onehat/data 1.7.7 → 1.7.8

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Entity.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.7.7",
3
+ "version": "1.7.8",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/Entity.js CHANGED
@@ -187,7 +187,7 @@ class Entity extends EventEmitter {
187
187
  if (this.isDestroyed) {
188
188
  throw Error('this._createStatics is no longer valid. Entity has been destroyed.');
189
189
  }
190
- const staticsDefinitions = this.schema.entity.methods;
190
+ const staticsDefinitions = this.schema.entity.statics;
191
191
  if (!_.isEmpty(staticsDefinitions)) {
192
192
  _.each(staticsDefinitions, (value, key) => {
193
193
  this[key] = value;