feature/IO-3000-messaging-sockets-migrations2 -

- Checkpoint

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-11-21 11:32:43 -08:00
parent 15151cb4ac
commit 5392659db6
7 changed files with 100 additions and 26 deletions

View File

@@ -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, {