Skip to content

Commit

Permalink
Merge pull request #1054 from opencrvs/release-v1.5.0
Browse files Browse the repository at this point in the history
merge countryconfig release v1.5.0 to farajaland
  • Loading branch information
Zangetsu101 authored Jul 9, 2024
2 parents 8b54caa + 3af276c commit 39ec7b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/api/notification/sms-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,13 @@ export async function sendSMS(
}

const responseBody = await response.text()
logger.info(`Response from Infobip: ${JSON.stringify(responseBody)}`)
if (!response.ok) {
logger.error(
`Failed to send sms to ${recipient}. Reason: ${response.text()}`
)
logger.error(`Failed to send sms to ${recipient}. Reason: ${responseBody}`)
throw internal(
`Failed to send notification to ${recipient}. Reason: ${response.text()}`
`Failed to send notification to ${recipient}. Reason: ${responseBody}`
)
}
logger.info(`Response from Infobip: ${JSON.stringify(responseBody)}`)
}

const compileMessages = async (
Expand Down

0 comments on commit 39ec7b9

Please sign in to comment.