Skip to content

Commit

Permalink
Merge pull request #100 from cego/lejo/fix-arrayable-count
Browse files Browse the repository at this point in the history
Added array surrounding the count options.
  • Loading branch information
LauJosefsen authored Jan 24, 2024
2 parents 124c50a + 8b0896c commit fa12748
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function load()
public function monitor(): JsonResponse
{
return response()->json([
'activeCount' => (int) RequestInsurance::query()->whereIn('state', State::READY, State::PROCESSING, State::PENDING)->count(),
'activeCount' => (int) RequestInsurance::query()->whereIn('state', [ State::READY, State::PROCESSING, State::PENDING ])->count(),
'failCount' => (int) RequestInsurance::query()->where('state', State::FAILED)->count(),
]);
}
Expand Down

0 comments on commit fa12748

Please sign in to comment.