section no longer nukes salesPerson-user relation
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2020-08-14 17:10:59 +02:00
parent 3e143495b4
commit 3df9ae2946
1 changed files with 10 additions and 1 deletions

View File

@ -36,7 +36,16 @@ module.exports = Self => {
relation: 'client',
scope: {
include: {
relation: 'salesPerson'
relation: 'salesPerson',
scope: {
fields: ['userFk'],
include: {
relation: 'user',
scope: {
fields: ['nickname']
}
}
}
}
}
}