Skip to content

Commit

Permalink
fix: Misskey API key placement
Browse files Browse the repository at this point in the history
  • Loading branch information
reinhart1010 committed Oct 15, 2022
1 parent b7d31e8 commit 1081ac1
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 @@ -235,6 +235,7 @@ export const sendNotification = async (message: string) => {
await axios.post(
`${baseUrl}/messaging/messages/create`,
{
i: getSecret("NOTIFICATION_MISSKEY_API_KEY") as string,
userId: getSecret("NOTIFICATION_MISSKEY_CHAT_USER_ID"),
text: message,
}
Expand Down Expand Up @@ -276,7 +277,6 @@ export const sendNotification = async (message: string) => {
await axios.post(
`https://api.telegram.org/bot${getSecret("NOTIFICATION_TELEGRAM_BOT_KEY")}/sendMessage`,
{
i: getSecret("NOTIFICATION_MISSKEY_API_KEY") as string,
parse_mode: "Markdown",
disable_web_page_preview: true,
chat_id: getSecret("NOTIFICATION_TELEGRAM_CHAT_ID"),
Expand Down

0 comments on commit 1081ac1

Please sign in to comment.