0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 19:32:42 +00:00

My god it works

This commit is contained in:
David Bolack
2024-02-27 20:20:43 -06:00
parent 56851f2c2d
commit 7384cdc241
3 changed files with 44 additions and 15 deletions

View File

@@ -158,7 +158,11 @@ const api = {
throw { name: 'BrewLoad Error', message: 'Brew not found', status: 404, HBErrorCode: '05', accessType: accessType, brewId: id };
}
const userID = accessType === 'edit' ? req.account.username : stub.authors.split(',')[0];
console.log(`print`);
console.log(accessType);
console.log(stub);
console.log(`print`);
const userID = accessType === 'edit' ? req.account.username : stub.authors[0];
// Clean up brew: fill in missing fields with defaults / fix old invalid values
const userThemes = await getUsersBrewThemes(userID, id);