join addressObservation into list Addresses service

This commit is contained in:
Daniel Herrero 2018-02-06 07:59:36 +01:00
parent 19ddead326
commit f0356eb047
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ module.exports = function(Client) {
},
skip: (params.page - 1) * params.size,
limit: params.size,
order: ['isDefaultAddress DESC', 'isActive DESC']
order: ['isDefaultAddress DESC', 'isActive DESC'],
include: {observations: 'observationType'}
};
let total = null;