Throw an error instead of logging it if token info changed

This commit is contained in:
Kasra Bigdeli
2017-12-18 18:54:05 -08:00
parent f0824ef53a
commit 2d1e1339cc
+1 -1
View File
@@ -106,7 +106,7 @@ module.exports.injectUserForWebhook = function () {
app = appFound;
if (app.appPushWebhook.tokenVersion !== decodedInfo.tokenVersion) {
Logger.e('Token Info do not match')
throw new Error('Token Info do not match');
}
let user = {