0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 21:02:43 +00:00

more heroku debug

This commit is contained in:
David Bolack
2024-03-06 13:16:57 -06:00
parent 0580e45af9
commit 2aaae95e89

View File

@@ -72,7 +72,8 @@ const api = {
'tags', 'tags',
'editId', 'editId',
'thumbnail', 'thumbnail',
'textBin' 'textBin',
'text'
]; ];
const userThemes = { const userThemes = {
@@ -86,7 +87,7 @@ const api = {
} }
console.log(`Looking for Theme Brews for ${username} that aren't ${id}`); 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 const brews = await HomebrewModel.getByUser(username, true, fields, { tags: { $in: ['theme', 'Theme'] }}) //lean() converts results to JSObjects
.catch((error)=>{throw 'Can not find brews';}); .catch((error)=>{throw 'Can not find brews';});
console.log(brews); console.log(brews);