Skip to content

Commit

Permalink
Merge #509
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
meili-bors[bot] and hmacr authored Sep 12, 2023
2 parents 50eb4f5 + 27230ab commit 38c9765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ pub enum TaskType {
#[derive(Debug, Clone, Deserialize)]
pub struct TasksResults {
pub results: Vec<Task>,
pub total: u64,
pub limit: u32,
pub from: Option<u32>,
pub next: Option<u32>,
Expand Down

0 comments on commit 38c9765

Please sign in to comment.