mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 17:52:47 +00:00
Change variable name
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
/*eslint max-lines: ["warn", {"max": 300, "skipBlankLines": true, "skipComments": true}]*/
|
/*eslint max-lines: ["warn", {"max": 400, "skipBlankLines": true, "skipComments": true}]*/
|
||||||
// Set working directory to project root
|
// Set working directory to project root
|
||||||
process.chdir(`${__dirname}/..`);
|
process.chdir(`${__dirname}/..`);
|
||||||
|
|
||||||
@@ -263,9 +263,9 @@ app.get('/print/:id', asyncHandler(getBrew('share')), (req, res, next)=>{
|
|||||||
});
|
});
|
||||||
|
|
||||||
//Account Page
|
//Account Page
|
||||||
app.get('/ui/account', asyncHandler(async (req, res, next)=>{
|
app.get('/account', asyncHandler(async (req, res, next)=>{
|
||||||
const brew = {};
|
const data = {};
|
||||||
brew.title = 'ACCOUNT INFORMATION PAGE';
|
data.title = 'ACCOUNT INFORMATION PAGE';
|
||||||
|
|
||||||
let auth;
|
let auth;
|
||||||
let files;
|
let files;
|
||||||
@@ -294,7 +294,7 @@ app.get('/ui/account', asyncHandler(async (req, res, next)=>{
|
|||||||
console.log(err);
|
console.log(err);
|
||||||
});
|
});
|
||||||
|
|
||||||
brew.uiItems = {
|
data.uiItems = {
|
||||||
username : req.account.username,
|
username : req.account.username,
|
||||||
issued : req.account.issued,
|
issued : req.account.issued,
|
||||||
mongoCount : brews.length,
|
mongoCount : brews.length,
|
||||||
@@ -304,7 +304,7 @@ app.get('/ui/account', asyncHandler(async (req, res, next)=>{
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
req.brew = brew;
|
req.brew = data;
|
||||||
return next();
|
return next();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user