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')
|
||||
).observe(),
|
||||
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()
|
||||
}))(StyledPledges))
|
||||
|
||||
|
|
Loading…
Reference in New Issue