View difference between Paste ID: eNB4pNkQ and 7eyK8wEg
SHOW: | | - or go back to the newest paste.
1
Promise.props({
2
  troops: Troop.find({ sort: 'level' }),
3
  barracks: Barracks.find({ sort: 'level' }),
4
}).then(function (result) {
5
  return res.view(result);
6-
}).catch, function (err) {
6+
}).catch(function (err) {
7
  return res.serverError();
8
});