0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 02:22:49 +00:00

Add authors to locked brew error message

This commit is contained in:
G.Ambatte
2025-04-09 09:59:34 +12:00
parent 1ded1cad5a
commit be2f1786b5
2 changed files with 4 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ const api = {
}
if(stub?.lock && accessType === 'share') {
throw { HBErrorCode: '51', code: stub.lock.code, message: stub.lock.shareMessage, brewId: stub.shareId, brewTitle: stub.title };
throw { HBErrorCode: '51', code: stub.lock.code, message: stub.lock.shareMessage, brewId: stub.shareId, brewTitle: stub.title, brewAuthors: stub.authors };
}
// If there's a google id, get it if requesting the full brew or if no stub found yet