Skip to content

Commit

Permalink
🐛 Add URLs in notifications (fixed upptime/upptime#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 30, 2020
1 parent 9ee27f9 commit a1aa9a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helpers/notifme.ts
Original file line number Diff line number Diff line change
@@ -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<EmailProvider>;
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit a1aa9a4

Please sign in to comment.