adding debug lines

This commit is contained in:
counter 2023-01-15 23:16:39 -08:00
parent 15ac19aa5e
commit acf06afce8

3
api.js
View file

@ -227,9 +227,10 @@ async function set_up_api_server(app) {
Update the user's path.
*/
app.put(constants.API_BASE_PATH + 'user-path', async (req, res) => {
let collisionUser;
if(typeof req.body.user_path == 'string'){
const desiredPath = req.body.user_path;
const collisionUser = await Users.findOne({ where: { 'path': desiredPath } });
collisionUser = await Users.findOne({ where: { 'path': desiredPath } });
}else{
return res.status(200).json({
"success": false,