Skip to content

Commit

Permalink
add new PLAY_FILENOTFOUND alert
Browse files Browse the repository at this point in the history
  • Loading branch information
sammachin committed Dec 3, 2024
1 parent f001bd4 commit f49b6ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const AlertType = {
SP_CALL_LIMIT: 'service-provider-call-limit',
SP_DEVICE_LIMIT: 'service-provider-device-limit',
SP_API_LIMIT: 'service-provider-api-limit',
ACCOUNT_INACTIVE: 'account is inactive or suspended'
ACCOUNT_INACTIVE: 'account is inactive or suspended',
PLAY_FILENOTFOUND: 'play-url-notfound'
};

const schemas = {
Expand Down Expand Up @@ -669,6 +670,9 @@ const writeAlerts = async(client, alerts) => {
// eslint-disable-next-line max-len
message = `you have exceeded your service provider api limit of ${count}; please consider upgrading your plan`;
break;
case AlertType.PLAY_FILENOTFOUND:
message = `The file at ${url} was not found`;
break;
default:
break;
}
Expand Down

0 comments on commit f49b6ea

Please sign in to comment.