mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-09-23 22:43:56 +00:00
Merge branch 'master' into experimentalEventStreamEmitter
This commit is contained in:
@@ -170,8 +170,7 @@ const api = {
|
|||||||
|
|
||||||
const googleBrew = await GoogleActions.getGoogleBrew(oAuth2Client, googleId, id, accessType)
|
const googleBrew = await GoogleActions.getGoogleBrew(oAuth2Client, googleId, id, accessType)
|
||||||
.catch((googleError)=>{
|
.catch((googleError)=>{
|
||||||
const reason = googleError.errors?.[0].reason;
|
if(googleError.code === 404 || googleError.status === 404)
|
||||||
if(reason == 'notFound')
|
|
||||||
throw { ...googleError, HBErrorCode: '02', authors: stub?.authors, account: req.account?.username };
|
throw { ...googleError, HBErrorCode: '02', authors: stub?.authors, account: req.account?.username };
|
||||||
else
|
else
|
||||||
throw { ...googleError, HBErrorCode: '01' };
|
throw { ...googleError, HBErrorCode: '01' };
|
||||||
|
|||||||
Reference in New Issue
Block a user