Skip to content
Snippets Groups Projects
Unverified Commit 4b57c0df authored by pierre-lehnen-rc's avatar pierre-lehnen-rc Committed by GitHub
Browse files

[IMPROVE] Stop re-sending push notifications rejected by the gateway (#18608)


Co-authored-by: default avatarDiego Sampaio <chinello@gmail.com>
parent 4ff5448d
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,11 @@ export class PushClass {
return;
}
if (response?.statusCode === 422) {
logger.info('gateway rejected push notification. not retrying.', response);
return;
}
if (response?.statusCode === 401) {
logger.warn('Error sending push to gateway (not authorized)', response);
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment