feature/IO-3000-messaging-sockets-migrations2 -
- Checkpoint Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -15,6 +15,11 @@ exports.status = async (req, res) => {
|
||||
} = req;
|
||||
|
||||
try {
|
||||
// Ignore status 'queued'
|
||||
if (SmsStatus === "queued") {
|
||||
return res.status(200).json({ message: "Status 'queued' disregarded." });
|
||||
}
|
||||
|
||||
// Update message status in the database
|
||||
const response = await client.request(queries.UPDATE_MESSAGE_STATUS, {
|
||||
msid: SmsSid,
|
||||
@@ -47,6 +52,7 @@ exports.status = async (req, res) => {
|
||||
warning: "No message returned from the database update."
|
||||
});
|
||||
}
|
||||
|
||||
res.sendStatus(200);
|
||||
} catch (error) {
|
||||
logger.log("sms-status-update-error", "ERROR", "api", null, {
|
||||
|
||||
Reference in New Issue
Block a user