mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
add comment to tell future me to remove logs when feature comes
This commit is contained in:
@@ -352,6 +352,9 @@ app.get('/user/:username', async (req, res, next)=>{
|
||||
//Change author name on brews
|
||||
app.put('/api/user/rename', async (req, res)=>{
|
||||
const { username, newUsername } = req.body;
|
||||
|
||||
//this next logs will be removed in a next PR, as i need to get this live to test if req.account is created when passing the request from naturalcrit.com
|
||||
|
||||
console.log(`is user ${req.account.username} equal to ${username}? ${req.account.username === username} ${req.account.username === username && 'then add the damn auth for renaming!'}`);
|
||||
console.log('renaming');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user