Commit 9d868c0b4340cdf58856ad857e6363827435b6f0
1 parent
4ace7acb
Exists in
2.9
and in
7 other branches
Passa o parametro de ano para a requisição do diário
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
app/Services/iDiarioService.php
... | ... | @@ -55,10 +55,14 @@ class iDiarioService |
55 | 55 | * |
56 | 56 | * @return bool |
57 | 57 | */ |
58 | - public function getStepActivityByUnit(int $unitId, int $step): bool | |
58 | + public function getStepActivityByUnit(int $unitId, int $year, int $step): bool | |
59 | 59 | { |
60 | 60 | try { |
61 | - $response = $this->get('/api/v2/step_activity', ['unity_id' => $unitId, 'step_number' => $step]); | |
61 | + $response = $this->get('/api/v2/step_activity', [ | |
62 | + 'unity_id' => $unitId, | |
63 | + 'year' => $year, | |
64 | + 'step_number' => $step | |
65 | + ]); | |
62 | 66 | $body = trim((string)$response->getBody()); |
63 | 67 | |
64 | 68 | if ($body === 'true') { | ... | ... |