add query filter for pledges owned by project

This commit is contained in:
Barry Gitarts 2019-05-21 15:05:30 -04:00 committed by Barry G
parent 5718523669
commit cbf4c367cd
1 changed files with 4 additions and 1 deletions

View File

@ -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))