Fix owner stuff for pledges
This commit is contained in:
@@ -12,7 +12,17 @@ module.exports = function (options) {
|
||||
association: db.Pledge.TranslationArtifactVersionPledges
|
||||
},
|
||||
{
|
||||
association: db.Pledge.Entity
|
||||
association: db.Pledge.Owner,
|
||||
include: [
|
||||
{
|
||||
association: db.Owner.OwnerEntity,
|
||||
include: [
|
||||
{
|
||||
association: db.OwnerEntity.Entity
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}).then(pledges => {
|
||||
@@ -35,7 +45,17 @@ module.exports = function (options) {
|
||||
db.Pledge.findByPk(request.params.id, {
|
||||
include: [
|
||||
{
|
||||
association: db.Pledge.Entity
|
||||
association: db.Pledge.Owner,
|
||||
include: [
|
||||
{
|
||||
association: db.Owner.OwnerEntity,
|
||||
include: [
|
||||
{
|
||||
association: db.OwnerEntity.Entity
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
association: db.Pledge.TranslationArtifactVersionPledges,
|
||||
|
||||
Reference in New Issue
Block a user