Skip to content

Commit 89f1e14

Browse files
chore: avoid send 403 in new account without verify body
1 parent f911331 commit 89f1e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/routes/pagarme/postback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exports.post = ({ appSdk }, req, res) => {
2727
console.log('checking pagarme', pagarme.postback.verifySignature(apiKey, verifyBody, signature))
2828
}
2929

30-
if (!pagarme.postback.verifySignature(apiKey, verifyBody, signature) && ((storeId != 51372) || (storeId != 1123)) && verifyBody && signature) {
30+
if (!pagarme.postback.verifySignature(apiKey, verifyBody, signature) && ((storeId != 51372) && (storeId != 1123)) && verifyBody && signature) {
3131
return res.sendStatus(403)
3232
}
3333

0 commit comments

Comments
 (0)