Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
saleem-hadad committed Sep 27, 2022
1 parent a74ba82 commit 4fd736f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/docs/1.0/reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class TotalIncome extends ValueMetric // <-- Required
$query->whereBetween('created_at', [$rangeData->start(), $rangeData->end()]);
}

return $query->sum('amount');
return ['value' => $query->sum('amount')];
}
}
```
Expand Down

0 comments on commit 4fd736f

Please sign in to comment.