diff options
Diffstat (limited to 'app/node_modules/okresource/index.js')
| -rw-r--r-- | app/node_modules/okresource/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/node_modules/okresource/index.js b/app/node_modules/okresource/index.js index 58b94c2..b7dd4b6 100644 --- a/app/node_modules/okresource/index.js +++ b/app/node_modules/okresource/index.js @@ -28,9 +28,12 @@ function createResourceClass(options) { if (!options.db) throw new Error('No DB provided to OKResource'); options = options || {}; - this.name = name; this._db = options.db; this._schema = schema; + Object.defineProperty(this, 'type', { + value: type, + writable: false + }); } /** |
