mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-01 15:50:11 -04:00
Fixed a bug where projection in /db/campaign/.../levels wasn't working correctly anymore if project wasn't included.
This commit is contained in:
parent
1c1f2be497
commit
7f203f246c
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ CampaignHandler = class CampaignHandler extends Handler
|
|||
|
||||
getRelatedLevels: (req, res, campaign, projection) ->
|
||||
extraProjectionProps = []
|
||||
if projection
|
||||
unless _.isEmpty(projection)
|
||||
# Make sure that permissions and version are fetched, but not sent back if they didn't ask for them.
|
||||
extraProjectionProps.push 'permissions' unless projection.permissions
|
||||
extraProjectionProps.push 'version' unless projection.version
|
||||
|
|
Loading…
Add table
Reference in a new issue