From a1aa9a442b1a9a0e33e9c0445e1cf46d96f33fb6 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Mon, 30 Nov 2020 12:00:03 +0530 Subject: [PATCH] :bug: Add URLs in notifications (fixed upptime/upptime#97) --- src/helpers/notifme.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helpers/notifme.ts b/src/helpers/notifme.ts index e931e8a5..31fbd8cd 100644 --- a/src/helpers/notifme.ts +++ b/src/helpers/notifme.ts @@ -1,6 +1,7 @@ import NotifmeSdk, { EmailProvider, SlackProvider, SmsProvider } from "notifme-sdk"; import axios from "axios"; import type { Channel } from "notifme-sdk"; +import { replaceEnvironmentVariables } from "./environment"; const channels: { email?: Channel; @@ -167,6 +168,7 @@ const notifier = new NotifmeSdk({ export const sendNotification = async (message: string) => { console.log("Sending notification", message); + message = replaceEnvironmentVariables(message); if (channels.email) { console.log("Sending email");