Rename the uid to taskUid in asynchronous response

This commit is contained in:
Kerollmops 2022-05-17 11:17:32 +02:00
parent e5ef5a6f9c
commit d2f457a076
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
9 changed files with 18 additions and 18 deletions

View file

@ -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(),