Skip to content

Commit

Permalink
#1345 Append "s" to "customField" in webhook detail message
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 26, 2020
1 parent 84c97cc commit 8a0c53b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class Webhook(config: WebhookNotification, auditSrv: AuditSrv, customFieldSrv: C
val fieldName = key.drop(12)
customFieldSrv
.getOrFail(fieldName)
.fold(_ => keyValue, cf => "customField" -> Json.obj(fieldName -> Json.obj(cf.`type`.toString -> value)))
.fold(_ => keyValue, cf => "customFields" -> Json.obj(fieldName -> Json.obj(cf.`type`.toString -> value)))
case keyValue => keyValue
})
}
Expand Down

0 comments on commit 8a0c53b

Please sign in to comment.