fix username variable in setUsername

This commit is contained in:
James Robinson
2020-08-29 22:01:13 -05:00
parent 262d3d3dfd
commit 92b0f917d6

View File

@@ -12,7 +12,7 @@ module.exports = function setUsername(req, res) {
let adminUserIDInput = req.query.adminUserID;
if (userID == undefined || userName == undefined || userID === "undefined" || username.length > 50) {
if (userID == undefined || userName == undefined || userID === "undefined" || userName.length > 50) {
//invalid request
res.sendStatus(400);
return;