Skip to content
This repository was archived by the owner on Dec 31, 2020. It is now read-only.

Commit 221450b

Browse files
committed
git service
- configuration null safe
1 parent 230f410 commit 221450b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ app.get('/api/bot', function(req, res) {
4343

4444
var user_text = req.param('text') || '<empty>'
4545
var workspace = process.env.WORKSPACE_ID || '<workspace-id>';
46-
if (!workspace || workspace === '<workspace-id>' || user_text === '<empty>' || process.env.GET_ACTIVE === 'OFF') {
46+
var check_status = process.env.GET_ACTIVE || 'OFF'
47+
if (!workspace || workspace === '<workspace-id>' || user_text === '<empty>' || check_status === 'OFF') {
4748
return "";
4849
}
4950

0 commit comments

Comments
 (0)