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,
|
||||
|
||||
@@ -10,7 +10,7 @@ block content
|
||||
h1 #{totalSatoshis} sats Pledge
|
||||
|
||||
p.flow-text
|
||||
small #{pledge.entity.name}
|
||||
small #{pledge.owner.ownerEntity.entity.name}
|
||||
br
|
||||
span= pledge.message
|
||||
|
||||
|
||||
@@ -14,6 +14,6 @@ block content
|
||||
a(href=`/pledges/${pledge.id}`) #{totalSatoshis} sats for #{pledge.translationArtifactVersionPledges.length} translations
|
||||
br
|
||||
small
|
||||
small.chip= pledge.entity.name
|
||||
small.chip= pledge.owner.ownerEntity.entity.name
|
||||
br
|
||||
small= pledge.message
|
||||
Reference in New Issue
Block a user