Skip to content

Commit

Permalink
Update notifications.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kernoeb committed Apr 25, 2024
1 parent e62f1c8 commit 6558b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports.send = async (notification) => {
if (!notifyUrl) return
if (notification?.topic?.key) events.emit(`notification-${notification.topic.key}`, notification)
if (process.env.NODE_ENV !== 'test') {
await axios.post(`${notifyUrl}/api/v1/notifications`, notification, { params: { key: config.globalAPIKey } })
await axios.post(`${notifyUrl}/api/v1/notifications`, notification, { params: { key: config.secretKeys.notifications } })
// .then(console.log)
.catch(err => console.error('Failure to push notification', notification, err.response || err))
}
Expand Down

0 comments on commit 6558b8d

Please sign in to comment.