File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
thehive/app/org/thp/thehive/services/notification/notifiers Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -258,7 +258,11 @@ class Webhook(
258
258
else {
259
259
val ws = new ProxyWS (config.wsConfig, mat)
260
260
val async = for {
261
- message <- Future .fromTry(buildMessage(config.version, audit))
261
+ message <- Future .fromTry(
262
+ buildMessage(config.version, audit).map(
263
+ _ + (" organisationId" -> JsString (organisation._id.toString)) + (" organisation" -> JsString (organisation.name))
264
+ )
265
+ )
262
266
_ = logger.debug(s " Request webhook with message $message" )
263
267
resp <- config.auth(ws.url(config.url)).post(message)
264
268
} yield if (resp.status >= 400 ) logger.warn(s " Webhook call on ${config.url} returns ${resp.status} ${resp.statusText}" ) else ()
You can’t perform that action at this time.
0 commit comments