Another hot fix for #550

This commit is contained in:
Michael Schmatz 2014-03-14 14:41:39 -07:00
parent 7d150d96e8
commit 6e9e3ccc3c

View file

@ -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