CollActionteam / collaction_api

The API powering the Collaction Client Applications
GNU Affero General Public License v3.0
7 stars 0 forks source link

feat: allow or-and-nor queries & crowdaction status filters #177

Closed Xazin closed 1 year ago

Xazin commented 1 year ago

Reasoning: Changes to mongo.utils.ts allows us to have queries like this: { or: [ startAt: { gte: now }, endAt: { lte: now } ] }, and as you can see, this is important when "selecting" crowdactions by multiple statuses, because otherwise they can overlap.

The rest of the PR is basically changing how we can grab the correct crowdactions by status and joinStatus.