From 9cb2ee4f61ea8b1586f2a11e6efdb0664f5a498b Mon Sep 17 00:00:00 2001 From: Mario Ranftl Date: Mon, 6 Feb 2023 19:39:36 +0100 Subject: [PATCH] fix TIMEOUT_MS parsing --- server/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app.js b/server/app.js index ce92b17..c7b3824 100644 --- a/server/app.js +++ b/server/app.js @@ -11,13 +11,13 @@ process.env.NODE_ENV = process.env.NODE_ENV || 'development'; // process.env.DEBUG = 'gwfh*'; var debug = require('debug')('gwfh:app'); - +var _ = require('lodash'); var express = require('express'); var config = require('./config/environment'); // Setup server var app = express(); var server = require('http').createServer(app); -server.timeout = config.serverTimeout; // 60 seconds +server.timeout = _.parseInt(config.serverTimeout); // 60 seconds require('./config/express')(app); require('./routes')(app);