mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Fixed CLA signing bug
Fat arrows to the rescue!
This commit is contained in:
parent
ea44047c04
commit
5bc2814342
1 changed files with 3 additions and 3 deletions
|
@ -132,12 +132,12 @@ UserHandler = class UserHandler extends Handler
|
|||
name: req.user.get 'name'
|
||||
githubUsername: req.body.githubUsername
|
||||
created: new Date()+''
|
||||
collection = mongoose.connection.db.collection 'cla.submissions', (err, collection) ->
|
||||
collection = mongoose.connection.db.collection 'cla.submissions', (err, collection) =>
|
||||
return @sendDatabaseError(res, err) if err
|
||||
collection.insert doc, (err) ->
|
||||
collection.insert doc, (err) =>
|
||||
return @sendDatabaseError(res, err) if err
|
||||
req.user.set('signedCLA', doc.created)
|
||||
req.user.save (err) ->
|
||||
req.user.save (err) =>
|
||||
return @sendDatabaseError(res, err) if err
|
||||
@sendSuccess(res, {result:'success'})
|
||||
|
||||
|
|
Loading…
Reference in a new issue