ghost-sequelize
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -73,6 +73,12 @@ const Fs = require('fs'); | ||
// associate all models first | ||
Object.keys(db).forEach(modelName => { | ||
if ("associate" in db[modelName]) db[modelName].associate(db) | ||
if ("associate" in db[modelName]) db[modelName].associate(db); | ||
}); | ||
// now that all associations are made, load scopes | ||
Object.keys(db).forEach(modelName => { | ||
if ("loadScopes" in db[modelName]) db[modelName].loadScopes(db); | ||
}); | ||
db.sequelize = this._sequelize; | ||
@@ -79,0 +85,0 @@ return db; |
{ | ||
"name": "ghost-sequelize", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"description": "Ghost Creative sequelize model db service wrapper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7456
220