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

more heroku debug

This commit is contained in:
David Bolack
2024-03-06 14:12:13 -06:00
parent 47ea2f6ed7
commit 9adafbd473

View File

@@ -86,10 +86,10 @@ const api = {
.catch((error)=>{throw 'Can not find brews';});
for await (const brew of brews) {
const foo = api.getBrew('themes', req=req, res=res, next=next);
api.getBrew('themes', req=req, res=res, next=next);
const brewTheme = req.brew;
console.log(`Looking at themes.`);
console.log(foo);
console.log(req);
console.log(`Looked at themes.`);
if(brewTheme) {
splitTextStyleAndMetadata(brewTheme);
@@ -111,6 +111,7 @@ const api = {
// Get relevant IDs for the brew
const { id, googleId } = api.getId(req);
console.log(`id: ${id}`);
// Try to find the document in the Homebrewery database -- if it doesn't exist, that's fine.
let stub = await HomebrewModel.get(accessType === 'edit' ? { editId: id } : { shareId: id })