Skip to content

Commit

Permalink
feat: ensure Application#port is a number (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharygolba authored Jun 19, 2016
1 parent 2d83f30 commit 7597031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/packages/application/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default async function initialize(app: Application, {
checkMigrations: true
});

Object.freeze(store);
port = parseInt(port, 10);

models.forEach((model, name) => {
const resource = pluralize(name);
Expand Down Expand Up @@ -191,6 +191,7 @@ export default async function initialize(app: Application, {
});

Object.freeze(app);
Object.freeze(store);
Object.freeze(logger);
Object.freeze(router);
Object.freeze(server);
Expand Down

0 comments on commit 7597031

Please sign in to comment.