We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a270b0 commit 3944241Copy full SHA for 3944241
index.js
@@ -65,8 +65,8 @@ const buzz = (user) => {
65
io.emit('buzzes', [...data.buzzes])
66
console.log(`${user.name} buzzed in!`)
67
68
- if (!data.clearTimeout) {
69
- data.clearTimeout = setTimeout(clear, parseInt(process.env.CLEAR_BUZZES_TIMEOUT) || 5000)
+ if (!data.clearTimeout && process.env.CLEAR_BUZZES_TIMEOUT) {
+ data.clearTimeout = setTimeout(clear, parseInt(process.env.CLEAR_BUZZES_TIMEOUT))
70
}
71
72
0 commit comments