Skip to content

Commit 38c9765

Browse files
Merge #509
509: Add total field to get-tasks route r=curquiza a=hmacr # Pull Request ## Related issue Fixes #504 ## What does this PR do? - Adds `total` field to `get-tasks` route ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: hmacr <[email protected]>
2 parents 50eb4f5 + 27230ab commit 38c9765

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tasks.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ pub enum TaskType {
4646
#[derive(Debug, Clone, Deserialize)]
4747
pub struct TasksResults {
4848
pub results: Vec<Task>,
49+
pub total: u64,
4950
pub limit: u32,
5051
pub from: Option<u32>,
5152
pub next: Option<u32>,

0 commit comments

Comments
 (0)