0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 15:42:38 +00:00

more heroku debug

This commit is contained in:
David Bolack
2024-03-06 13:11:49 -06:00
parent 0dbf6453ac
commit 0580e45af9

View File

@@ -85,8 +85,10 @@ const api = {
return userThemes;
}
console.log(`Looking for Theme Brews for ${username} that aren't ${id}`);
const brews = await HomebrewModel.getByUser(username, true, fields, { tags: { $in: ['theme', 'Theme'] }, editId: { $ne: id } }) //lean() converts results to JSObjects
.catch((error)=>{throw 'Can not find brews';});
console.log(brews);
for await (const brew of brews) {
api.getBrew('themes', req=req, res=res, next=next);