File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/main/kotlin/no/nav/hjelpemidler Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,9 @@ internal object Configuration {
85
85
val sensuUrl = get(" SENSU_URL" )
86
86
val oebsToken = get(" OEBSTOKEN" )
87
87
val slackHook = get(" SLACK_HOOK" )
88
- val ntfyUrl = " https://ntfy.sh"
89
- val ntfyTopic = " teamdigihot_hm-oebs-listener"
88
+ val slackRecipient = get(" SLACK_RECIPIENT" )
89
+ const val ntfyUrl = " https://ntfy.sh"
90
+ const val ntfyTopic = " teamdigihot_hm-oebs-listener"
90
91
91
92
enum class Profile {
92
93
PROD , DEV , LOCAL ;
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ fun Route.ordreAPI(context: Context) {
39
39
)
40
40
if (Configuration .profile == Profile .PROD ) {
41
41
Slack .post(
42
- text = " *${Configuration .profile} * - $feilmelding " ,
43
- channel = " #papaya-alerts "
42
+ text = " *${Configuration .profile} * - $feilmelding - <@ ${ Configuration .slackRecipient} > " ,
43
+ channel = " #digihot-oebs "
44
44
)
45
45
Ntfy .publish(
46
46
Ntfy .Notification (
You can’t perform that action at this time.
0 commit comments