Add missing dependancy, fix some bugs
This commit is contained in:
parent
bc7b0d7223
commit
19e837cd2c
4 changed files with 5 additions and 4 deletions
|
@ -14,7 +14,7 @@ let casparIsConnected
|
|||
let currentHost
|
||||
|
||||
export function initialise(log, db, socket) {
|
||||
io = socket.socket
|
||||
io = socket
|
||||
logger = log
|
||||
db = db
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import * as settings from './settings/routes.mjs'
|
|||
import * as schedule from './schedule/routes.mjs'
|
||||
|
||||
function onConnection(server, db, data) {
|
||||
const io = server.socket
|
||||
const socket = data.socket
|
||||
const io = server
|
||||
const socket = data
|
||||
const log = logger.child({
|
||||
id: socket.id,
|
||||
})
|
||||
|
|
|
@ -33,7 +33,7 @@ lowdb().then(function(db) {
|
|||
}
|
||||
|
||||
child[level]({
|
||||
duration: (d2 - d1),
|
||||
duration: requestTime,
|
||||
status: res.statusCode,
|
||||
}, `<-- ${req.method} ${req.url}`)
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
"lodash.template": "^4.5.0",
|
||||
"lowdb": "^1.0.0",
|
||||
"nconf": "^0.9.1",
|
||||
"node-static": "^0.7.11",
|
||||
"socket.io-serveronly": "^2.3.0",
|
||||
"tslib": "^1.11.1"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue