Prefer using TaskDeletion in the dumps

This commit is contained in:
Kerollmops 2022-10-17 18:11:28 +02:00 committed by Clément Renault
parent 1ca9a67c49
commit 591527a99d
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
2 changed files with 3 additions and 3 deletions

View File

@ -117,7 +117,7 @@ pub enum KindDump {
query: String,
tasks: Vec<TaskId>,
},
DeleteTasks {
TasksDeletion {
query: String,
tasks: RoaringBitmap,
},
@ -186,7 +186,7 @@ impl From<KindWithContent> for KindDump {
KindDump::TaskCancelation { query, tasks }
}
KindWithContent::TaskDeletion { query, tasks } => {
KindDump::DeleteTasks { query, tasks }
KindDump::TasksDeletion { query, tasks }
}
KindWithContent::DumpExport {
dump_uid,

View File

@ -526,7 +526,7 @@ impl IndexScheduler {
KindDump::TaskCancelation { query, tasks } => {
KindWithContent::TaskCancelation { query, tasks }
}
KindDump::DeleteTasks { query, tasks } => {
KindDump::TasksDeletion { query, tasks } => {
KindWithContent::TaskDeletion { query, tasks }
}
KindDump::DumpExport {