basic fix

This commit is contained in:
Víctor Losada Hernández committed 2026-09-14 16:10:47 +02:00
1 parent 7ce3e471a2
commit dafec31632
1 file changed
+1 -2
+1 -2
View File
@@ -168,8 +168,7 @@ const api = {
const googleBrew = await GoogleActions.getGoogleBrew(oAuth2Client, googleId, id, accessType)
.catch((googleError)=>{
const reason = googleError.errors?.[0].reason;
if(reason == 'notFound')
if(googleError.code === 404 || googleError.status === 404)
throw { ...googleError, HBErrorCode: '02', authors: stub?.authors, account: req.account?.username };
else
throw { ...googleError, HBErrorCode: '01' };