Skip to content

Commit

Permalink
fixup! feat(dav): add out-of-office ocs api to get current data
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed Nov 1, 2023
1 parent 2c988e6 commit cca5538
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dav/lib/Controller/OutOfOfficeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(
* @NoCSRFRequired
*
* @param string $userId The user id to get out-of-office data for.
* @return DataResponse<Http::STATUS_OK, ?DavOutOfOfficeData, array{}>
* @return DataResponse<Http::STATUS_OK|Http::STATUS_NOT_FOUND, ?DavOutOfOfficeData, array{}>
*
* 200: Out-of-office data
* 404: No out-of-office data was found
Expand All @@ -68,6 +68,7 @@ public function getCurrentOutOfOfficeData(string $userId): DataResponse {

return new DataResponse([
'id' => $data->getId(),
'userId' => $data->getUserId(),
'firstDay' => $data->getFirstDay(),
'lastDay' => $data->getLastDay(),
'status' => $data->getStatus(),
Expand Down

0 comments on commit cca5538

Please sign in to comment.