mirror of
https://github.com/caprover/caprover
synced 2026-09-26 16:45:39 +00:00
Throw an error instead of logging it if token info changed
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user