From 75970310767bbc591742ca1f6be682caba97d1c9 Mon Sep 17 00:00:00 2001 From: Zachary Golba Date: Sun, 19 Jun 2016 15:18:06 -0400 Subject: [PATCH] feat: ensure Application#port is a number (#156) --- src/packages/application/initialize.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/packages/application/initialize.js b/src/packages/application/initialize.js index 47a8f168..149b5581 100644 --- a/src/packages/application/initialize.js +++ b/src/packages/application/initialize.js @@ -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); @@ -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);