Skip to content

Commit 30c6bb0

Browse files
committed
bytter kanal for ordrefeilmeldinger til #digihot-oebs
bruker SLACK_RECIPIENT i melding
1 parent 8f9f50f commit 30c6bb0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/kotlin/no/nav/hjelpemidler/Configuration.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ internal object Configuration {
8585
val sensuUrl = get("SENSU_URL")
8686
val oebsToken = get("OEBSTOKEN")
8787
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"
9091

9192
enum class Profile {
9293
PROD, DEV, LOCAL;

src/main/kotlin/no/nav/hjelpemidler/api/OrdreAPI.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ fun Route.ordreAPI(context: Context) {
3939
)
4040
if (Configuration.profile == Profile.PROD) {
4141
Slack.post(
42-
text = "*${Configuration.profile}* - $feilmelding",
43-
channel = "#papaya-alerts"
42+
text = "*${Configuration.profile}* - $feilmelding - <@${Configuration.slackRecipient}>",
43+
channel = "#digihot-oebs"
4444
)
4545
Ntfy.publish(
4646
Ntfy.Notification(

0 commit comments

Comments
 (0)