Skip to content

Commit

Permalink
🐛 Fix types in #249
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary authored May 5, 2024
1 parent 1a286bd commit 951fcf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/notifme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export const sendNotification = async (message: string) => {
if (getSecret("NOTIFICATION_TELEGRAM") && getSecret("NOTIFICATION_TELEGRAM_BOT_KEY")) {
console.log("Sending Telegram");
try {
const chatIds = getSecret("NOTIFICATION_TELEGRAM_CHAT_ID").split(",");
const chatIds = getSecret("NOTIFICATION_TELEGRAM_CHAT_ID")?.split(",") ?? [];
for (const chatId of chatIds) {
await axios.post(
`https://api.telegram.org/bot${getSecret("NOTIFICATION_TELEGRAM_BOT_KEY")}/sendMessage`,
Expand Down

0 comments on commit 951fcf5

Please sign in to comment.