Skip to content

Commit

Permalink
Merge pull request #28 from weyert/patch-1
Browse files Browse the repository at this point in the history
fix: validation check for the models config file
  • Loading branch information
scott-wyatt authored Dec 19, 2018
2 parents 4acaadf + 20a8bbd commit 1a1e130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SequelizeSpool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class SequelizeSpool extends DatastoreSpool {
this.app.log.warn('No store configured at config.stores, models will be ignored')
}
const models = this.app.config.get('models')
if (!models) {
if (models && Object.keys(models).length === 0) {
this.app.log.warn('No models configured at config.models, models will be ignored')
}
return Promise.all([
Expand Down

0 comments on commit 1a1e130

Please sign in to comment.