I think this return is needed to prevent sending the i18n query results twice and crashing the server.
This commit is contained in:
parent
cea04d27ad
commit
68ac412f2b
2 changed files with 15 additions and 14 deletions
server/commons
|
@ -121,6 +121,7 @@ module.exports = class Handler
|
||||||
return @sendDatabaseError(res, err) if err
|
return @sendDatabaseError(res, err) if err
|
||||||
documents = (@formatEntity(req, doc) for doc in documents)
|
documents = (@formatEntity(req, doc) for doc in documents)
|
||||||
@sendSuccess(res, documents)
|
@sendSuccess(res, documents)
|
||||||
|
return
|
||||||
|
|
||||||
specialParameters = ['term', 'project', 'conditions']
|
specialParameters = ['term', 'project', 'conditions']
|
||||||
|
|
||||||
|
|
Reference in a new issue