Skip to content

Commit

Permalink
fix(server): wsInitPromise should be passed into then in a function
Browse files Browse the repository at this point in the history
Fixes #2751
  • Loading branch information
zeripath committed Jul 22, 2018
1 parent 73d1e29 commit ce46519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/app/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function startServer() {
}
<% if(filters.sequelize) { %>
sqldb.sequelize.sync()<% if(filters.ws) { %>
.then(wsInitPromise)
.then(() => wsInitPromise)
.then(primus => {
app.primus = primus;
})<% } %><% if(filters.models) { %>
Expand Down

0 comments on commit ce46519

Please sign in to comment.