Skip to content

Commit 419d6ed

Browse files
fixup! fix(dav): Make current ooo info time-dependent
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent becee17 commit 419d6ed

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

apps/dav/lib/Controller/OutOfOfficeController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@
3838
use OCP\IUserManager;
3939
use OCP\IUserSession;
4040
use OCP\User\IAvailabilityCoordinator;
41-
use OCP\User\IOutOfOfficeData;
4241

4342
/**
4443
* @psalm-import-type DAVOutOfOfficeData from ResponseDefinitions
45-
* @psalm-import-type DAVCurentOutOfOfficeData from ResponseDefinitions
44+
* @psalm-import-type DAVCurrentOutOfOfficeData from ResponseDefinitions
4645
*/
4746
class OutOfOfficeController extends OCSController {
4847

@@ -61,7 +60,7 @@ public function __construct(
6160
* Get the currently configured out-of-office data of a user.
6261
*
6362
* @param string $userId The user id to get out-of-office data for.
64-
* @return DataResponse<Http::STATUS_OK, DAVCurentOutOfOfficeData, array{}>|DataResponse<Http::STATUS_NOT_FOUND, null, array{}>
63+
* @return DataResponse<Http::STATUS_OK, DAVCurrentOutOfOfficeData, array{}>|DataResponse<Http::STATUS_NOT_FOUND, null, array{}>
6564
*
6665
* 200: Out-of-office data
6766
* 404: No out-of-office data was found

apps/dav/lib/ResponseDefinitions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* }
4141
*
4242
* @todo this is a copy of \OCP\User\IOutOfOfficeData
43-
* @psalm-type DAVCurentOutOfOfficeData = DAVOutOfOfficeDataCommon&array{
43+
* @psalm-type DAVCurrentOutOfOfficeData = DAVOutOfOfficeDataCommon&array{
4444
* id: string,
4545
* startDate: int,
4646
* endDate: int,

0 commit comments

Comments
 (0)