mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-26 05:07:28 +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()),
|
_ if task.status != Status::Enqueued => Some(Uuid::nil()),
|
||||||
None if task.status == Status::Enqueued && task_has_no_docs => {
|
None if task.status == Status::Enqueued && task_has_no_docs => {
|
||||||
let (uuid, mut file) = self.index_scheduler.queue.create_update_file(false)?;
|
let (uuid, mut file) = self.index_scheduler.queue.create_update_file(false)?;
|
||||||
let builder = DocumentsBatchBuilder::new(&mut file);
|
|
||||||
builder.into_inner()?;
|
|
||||||
file.persist()?;
|
file.persist()?;
|
||||||
|
|
||||||
Some(uuid)
|
Some(uuid)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user