bug and media fixes

This commit is contained in:
Dennis Eichhorn 2021-10-29 14:49:55 +02:00
parent c47176b285
commit d67f2c0527
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ final class ApiController extends Controller
} }
$employee = EmployeeMapper::getFromAccount($account); $employee = EmployeeMapper::getFromAccount($account);
$sessions = SessionMapper::getSessionListForEmployee($employee->getId(), new DateTime($request->getData('start') ?? 'now'), (int) ($request->getData('session') ?? 0), 50); $sessions = SessionMapper::getSessionListForEmployee($employee->getId(), new \DateTime($request->getData('start') ?? 'now'), (int) ($request->getData('session') ?? 0), 50);
$this->fillJsonResponse($request, $response, NotificationLevel::HIDDEN, '', '', $sessions); $this->fillJsonResponse($request, $response, NotificationLevel::HIDDEN, '', '', $sessions);
} }

View File

@ -392,4 +392,4 @@ function phpServe() : void
}); });
} }
phpServe(); \phpServe();