mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-24 20:27:32 +01:00
Handle empty payloads
This commit is contained in:
parent
59242b9c4f
commit
2cf57d584e
@ -63,8 +63,6 @@ impl<'a> Dump<'a> {
|
||||
_ if task.status != Status::Enqueued => Some(Uuid::nil()),
|
||||
None if task.status == Status::Enqueued && task_has_no_docs => {
|
||||
let (uuid, mut file) = self.index_scheduler.queue.create_update_file(false)?;
|
||||
let builder = DocumentsBatchBuilder::new(&mut file);
|
||||
builder.into_inner()?;
|
||||
file.persist()?;
|
||||
|
||||
Some(uuid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user