Adding owner (for multiple enity association)
This commit is contained in:
@@ -55,12 +55,26 @@ module.exports = function (options) {
|
||||
tag: request.body.version
|
||||
}
|
||||
],
|
||||
entityId: request.user.individualEntityUser.entityUser.entityId
|
||||
owner: {
|
||||
ownerEntities: [
|
||||
{
|
||||
entityId: request.user.individualEntityUser.entityUser.entityId,
|
||||
}
|
||||
]
|
||||
}
|
||||
}, {
|
||||
include: [
|
||||
{
|
||||
association: db.Artifact.ArtifactVersions,
|
||||
|
||||
},
|
||||
{
|
||||
association: db.Artifact.Owner,
|
||||
include: [
|
||||
{
|
||||
association: db.Owner.OwnerEntities
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user