Skip to content

Commit

Permalink
fix count not being returned on no records
Browse files Browse the repository at this point in the history
  • Loading branch information
Fleeym committed Mar 1, 2024
1 parent 42d459e commit afae0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/models/mod_entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ impl Mod {
if records.is_empty() {
return Ok(PaginatedData {
data: vec![],
count: 0,
count,
});
}

Expand Down

0 comments on commit afae0b9

Please sign in to comment.