mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Rename the uid to taskUid in asynchronous response
This commit is contained in:
parent
e5ef5a6f9c
commit
d2f457a076
9 changed files with 18 additions and 18 deletions
|
@ -349,7 +349,7 @@ impl From<Vec<TaskView>> for TaskListView {
|
|||
#[derive(Debug, Serialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct SummarizedTaskView {
|
||||
uid: TaskId,
|
||||
task_uid: TaskId,
|
||||
index_uid: Option<String>,
|
||||
status: TaskStatus,
|
||||
#[serde(rename = "type")]
|
||||
|
@ -372,7 +372,7 @@ impl From<Task> for SummarizedTaskView {
|
|||
};
|
||||
|
||||
Self {
|
||||
uid: other.id,
|
||||
task_uid: other.id,
|
||||
index_uid: other.index_uid.map(|u| u.into_inner()),
|
||||
status: TaskStatus::Enqueued,
|
||||
task_type: other.content.into(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue