Handle error in ExportsController

This commit is contained in:
Michael Mazour 2018-05-18 15:08:33 +01:00
parent 24b4f9c46f
commit 19e07485bc

View file

@ -8,6 +8,7 @@ module.exports =
{project_id, brand_variation_id} = req.params
user_id = AuthenticationController.getLoggedInUserId(req)
ExportsHandler.exportProject project_id, user_id, brand_variation_id, (err, export_data) ->
return next(err) if err?
logger.log
user_id:user_id
project_id: project_id