0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-31 23:52:48 +00:00

Add additional test for when logged in, but not in author list

This commit is contained in:
Trevor Buckner
2023-06-26 23:26:59 -04:00
parent a7040e554a
commit 8baf0fc849
2 changed files with 21 additions and 5 deletions

View File

@@ -61,9 +61,8 @@ const api = {
const reason = googleError.errors?.[0].reason;
if(reason == 'notFound') {
throw { ...googleError, HBErrorCode: '02', authors: stub?.authors, account: req.account?.username };
}
else {
throw { ...googleError, HBErrorCode: '01'};
} else {
throw { ...googleError, HBErrorCode: '01' };
}
}
// Combine the Homebrewery stub with the google brew, or if the stub doesn't exist just use the google brew