add query filter for pledges owned by project
This commit is contained in:
parent
5718523669
commit
cbf4c367cd
|
@ -228,7 +228,10 @@ export default withDatabase(withObservables([], ({ database, match }) => ({
|
||||||
Q.where('event', 'DelegateAdded')
|
Q.where('event', 'DelegateAdded')
|
||||||
).observe(),
|
).observe(),
|
||||||
pledges: database.collections.get('pledges').query(
|
pledges: database.collections.get('pledges').query(
|
||||||
Q.where('intended_project', match.params.id)
|
Q.or(
|
||||||
|
Q.where('intended_project', match.params.id),
|
||||||
|
Q.where('owner_id', match.params.id)
|
||||||
|
)
|
||||||
).observe()
|
).observe()
|
||||||
}))(StyledPledges))
|
}))(StyledPledges))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue