Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Create proper in-progress export jobs query (#2630)
Backport of #2627 We have 2 issues with the current in-progress export jobs query: - not setting the indexed fields ourselves is not compatible with the use of an `$or` operator (see cozy/cozy-client#1270) - the index is not created if there are too many jobs in the db Luckily these can be fixed by using the `indexFields()` and `sortBy()` method of `cozy-client`'s `QueryDefinition` object. See the commits messages for more details. ``` ### 🐛 Bug Fixes * Create proper, optimized query for in-progress export jobs ```
- Loading branch information