Merge pull request #5026 from 5e-Cleric/fix-deletion-of-orphan-stubs

fix deletion of orphan stubs
This commit is contained in:
Víctor Losada Hernández
2026-09-20 16:07:18 +02:00
committed by GitHub
+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' };