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.
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.