mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Another hot fix for #550
This commit is contained in:
parent
7d150d96e8
commit
6e9e3ccc3c
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ module.exports = class Handler
|
|||
# Keeping it simple for now and just allowing access to the first FETCH_LIMIT results.
|
||||
query = {'original': mongoose.Types.ObjectId(id)}
|
||||
sort = {'created': -1}
|
||||
selectString = 'slug name version commitMessage created' # Is this even working?
|
||||
selectString = 'slug name version commitMessage created permissions' # Is this even working?
|
||||
@modelClass.find(query).select(selectString).limit(FETCH_LIMIT).sort(sort).exec (err, results) =>
|
||||
return @sendDatabaseError(res, err) if err
|
||||
for doc in results
|
||||
|
|
Loading…
Reference in a new issue