Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Wait before continuing
Browse files Browse the repository at this point in the history
  • Loading branch information
claviska committed Apr 28, 2017
1 parent a93011e commit cdc7284
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ Promise.resolve()
let models = Database.sequelize.models;

// Generate search indexes on startup
models.post.buildSearchIndex();
models.user.buildSearchIndex();
models.tag.buildSearchIndex();
return Promise.all([
models.post.buildSearchIndex(),
models.user.buildSearchIndex(),
models.tag.buildSearchIndex()
]);
})
// Load settings into app.locals.Settings
.then(() => Database.loadSettings())
Expand Down

0 comments on commit cdc7284

Please sign in to comment.