mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Remove redundant lowercasing in classroom handler
This commit is contained in:
parent
44cd64e00e
commit
7598236c21
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ ClassroomHandler = class ClassroomHandler extends Handler
|
|||
Classroom.find {members: mongoose.Types.ObjectId(memberID)}, (err, classrooms) =>
|
||||
return @sendDatabaseError(res, err) if err
|
||||
return @sendSuccess(res, (@formatEntity(req, classroom) for classroom in classrooms))
|
||||
else if code = req.query.code.toLowerCase()
|
||||
else if code = req.query.code
|
||||
code = code.toLowerCase()
|
||||
Classroom.findOne {code: code}, (err, classroom) =>
|
||||
return @sendDatabaseError(res, err) if err
|
||||
|
|
Loading…
Reference in a new issue