Combine tags with v1 tags

This commit is contained in:
Alasdair Smith 2017-10-31 12:37:18 +00:00
parent 020e8ab8c4
commit ec64d1fab9

View file

@ -166,7 +166,8 @@ module.exports = ProjectController =
logger.err err:err, "error getting data for project list page"
return next(err)
logger.log results:results, user_id:user_id, "rendering project list"
tags = results.tags[0]
v1Tags = results.v1Projects?.tags or []
tags = results.tags[0].concat(v1Tags)
notifications = require("underscore").map results.notifications, (notification)->
notification.html = req.i18n.translate(notification.templateKey, notification.messageOpts)
return notification