Fix a bug that was making it impossible to display billing information in the android app.

This commit is contained in:
MarkBryanMilligan
2022-04-04 17:20:15 -05:00
parent 8387216c44
commit d30fc4b4ce
11 changed files with 52 additions and 24 deletions

View File

@@ -45,6 +45,9 @@ public abstract class AbstractAlertAction implements ActionImpl {
try {
messaging.send(msg);
} catch (Exception _e) {
if (_e.getMessage().contains("not found")) {
RulesEngine.instance().dao().removeFcmDevice(device.getId());
}
logger.error("Failed to send message to account {}, device {}", _rule.getAccountId(), device.getName(), _e);
}
}