Update migrations
This commit is contained in:
miroman-afk
2022-02-05 15:26:43 +03:00
parent 5b1c774259
commit 506636d35c
7 changed files with 35 additions and 21 deletions

View File

@@ -21,10 +21,17 @@ class GETReports extends HRCCommand implements HRCCommandInterface {
'end_date' => date('d.m.Y', strtotime($report['end_date'])),
);
}
return [
'status' => 'success',
'reports' => $data,
];
if (isset($data)) {
return [
'status' => 'success',
'reports' => $data,
];
} else {
return [
'status' => 'success',
'reports' => [],
];
}
} else {
return [
'status' => 'success',