THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

api: Change new issue notifications option

Issue notification
---
[{
...
   sendNotification: true,
...
},
...]
webhook-hangout
Suwon Chae 2 years ago
parent
commit
abdffafd56
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/api/IssueApi.java

+ 1
- 1
app/controllers/api/IssueApi.java View File

@ -91,7 +91,7 @@ public class IssueApi extends AbstractPostingApp {
return badRequest(result.put("message", "No issues key exists or value wasn't array!"));
}
boolean sendNotification = json.findValue("sendNotification") != null;
boolean sendNotification = json.findValue("sendNotification") != null && json.findValue("sendNotification").asBoolean();
Project project = Project.findByOwnerAndProjectName(owner, projectName);

Loading…
Cancel
Save