mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-18 01:22:43 +00:00
more heroku debug
This commit is contained in:
@@ -86,10 +86,10 @@ const api = {
|
|||||||
.catch((error)=>{throw 'Can not find brews';});
|
.catch((error)=>{throw 'Can not find brews';});
|
||||||
|
|
||||||
for await (const brew of 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;
|
const brewTheme = req.brew;
|
||||||
console.log(`Looking at themes.`);
|
console.log(`Looking at themes.`);
|
||||||
console.log(foo);
|
console.log(req);
|
||||||
console.log(`Looked at themes.`);
|
console.log(`Looked at themes.`);
|
||||||
if(brewTheme) {
|
if(brewTheme) {
|
||||||
splitTextStyleAndMetadata(brewTheme);
|
splitTextStyleAndMetadata(brewTheme);
|
||||||
@@ -111,6 +111,7 @@ const api = {
|
|||||||
|
|
||||||
// Get relevant IDs for the brew
|
// Get relevant IDs for the brew
|
||||||
const { id, googleId } = api.getId(req);
|
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.
|
// 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 })
|
let stub = await HomebrewModel.get(accessType === 'edit' ? { editId: id } : { shareId: id })
|
||||||
|
|||||||
Reference in New Issue
Block a user