Delete TranscriptionEntities matching the filters on worker results deletion
The worker results deletion was implemented before we added WorkerRuns to TranscriptionEntities in #1027 (closed). As a result, it only filters the TranscriptionEntities to delete by the WorkerRun of their transcription, and not their own WorkerRun.
The worker results deletion should be updated to use two separate queries:
- one to delete both the TranscriptionEntities from the transcriptions matching the selected filters, as is currently done;
- one to delete the TranscriptionEntities matching the filters directly.
When no filters are selected (when deleting all worker results in a corpus or an element), only one query is necessary, so the other should not be executed.