Skip to content

Commit

Permalink
fix: log text res
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinand11 committed Dec 12, 2023
1 parent 04fbd6c commit e53781f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/api/src/modules/notifications/utils/phone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const sendText = async (text: PhoneText) => {
type: 'plain',
channel: 'generic',
api_key: termiiAPIKey
}).then((res) => {
appInstance.logger.info({ ...res.data, ...text })
}).catch((err) => {
throw new BadRequestError(`Failed to send text: ${err.response.data.message}`)
})
Expand Down

0 comments on commit e53781f

Please sign in to comment.