Skip to content

Commit cca5538

Browse files
committed
fixup! feat(dav): add out-of-office ocs api to get current data
1 parent 2c988e6 commit cca5538

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/dav/lib/Controller/OutOfOfficeController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(
5454
* @NoCSRFRequired
5555
*
5656
* @param string $userId The user id to get out-of-office data for.
57-
* @return DataResponse<Http::STATUS_OK, ?DavOutOfOfficeData, array{}>
57+
* @return DataResponse<Http::STATUS_OK|Http::STATUS_NOT_FOUND, ?DavOutOfOfficeData, array{}>
5858
*
5959
* 200: Out-of-office data
6060
* 404: No out-of-office data was found
@@ -68,6 +68,7 @@ public function getCurrentOutOfOfficeData(string $userId): DataResponse {
6868

6969
return new DataResponse([
7070
'id' => $data->getId(),
71+
'userId' => $data->getUserId(),
7172
'firstDay' => $data->getFirstDay(),
7273
'lastDay' => $data->getLastDay(),
7374
'status' => $data->getStatus(),

0 commit comments

Comments
 (0)