mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 11:27:14 -05:00
Merge branch 'master' into production
This commit is contained in:
commit
e65811fc2c
1 changed files with 3 additions and 2 deletions
|
@ -311,8 +311,9 @@ module.exports = class Handler
|
||||||
for prop in @getEditableProperties req, document
|
for prop in @getEditableProperties req, document
|
||||||
if (val = req.body[prop])?
|
if (val = req.body[prop])?
|
||||||
document.set prop, val
|
document.set prop, val
|
||||||
else if document.get(prop)? and req.method isnt 'PATCH'
|
# Hold on, gotta think about that one
|
||||||
document.set prop, 'undefined'
|
#else if document.get(prop)? and req.method isnt 'PATCH'
|
||||||
|
# document.set prop, 'undefined'
|
||||||
obj = document.toObject()
|
obj = document.toObject()
|
||||||
|
|
||||||
# Hack to get saving of Users to work. Probably should replace these props with strings
|
# Hack to get saving of Users to work. Probably should replace these props with strings
|
||||||
|
|
Loading…
Reference in a new issue