Skip to content

Commit

Permalink
add missing log part
Browse files Browse the repository at this point in the history
  • Loading branch information
hmt committed Apr 30, 2021
1 parent e74bdf3 commit 91d620c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ router.all("/:call", async (req, res, next) => {
server = await handler.find_meeting_id(S.servers)
res.locals.log.push(`found, ${handler.call==='join'?'redirect to':'reply with'} ${server.host}`)
} catch (e) {
res.locals.log.push(`${Color.yellow("not found,")}`)
res.locals.log.push(`${Color.yellow("not found")},`)
if (handler.call === 'create') {
S.get_available_server()
res.locals.log.push(`open new room on ${Color.green(S.current_server.host)}`);
}
} else res.locals.log.push(`reply with ${S.current_server.host}`)
server = S.current_server
}
const redirect = handler.rewritten_query(server)
Expand Down

0 comments on commit 91d620c

Please sign in to comment.