add sp_sid to alerts

This commit is contained in:
Sam Machin
2026-03-27 16:59:42 +00:00
parent ce4ac89179
commit 750608513c
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
{
"permissions": {
"allow": [
"Bash(git stash:*)",
"Bash(git checkout:*)"
]
}
}
+2
View File
@@ -112,6 +112,7 @@ const checkAccountLimits = async(req, res, next) => {
writeAlerts({
alert_type: AlertType.ACCOUNT_DEVICE_LIMIT,
account_sid,
service_provider_sid: account.service_provider_sid,
count: 0
}).catch((err) => logger.info({err}, 'checkAccountLimits: error writing alert'));
@@ -124,6 +125,7 @@ const checkAccountLimits = async(req, res, next) => {
writeAlerts({
alert_type: AlertType.ACCOUNT_DEVICE_LIMIT,
account_sid,
service_provider_sid: account.service_provider_sid,
count: limit_registrations
}).catch((err) => logger.info({err}, 'checkAccountLimits: error writing alert'));
return res.send(503, 'Max Devices Registered');