From d17f4f49f24e894aed82acb86cb6edbf925dcb14 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 28 Sep 2023 22:34:23 -0100 Subject: [PATCH] data is FileLock Signed-off-by: Maxence Lange --- lib/Controller/LockController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/LockController.php b/lib/Controller/LockController.php index 7eb7970f..8701bbc5 100644 --- a/lib/Controller/LockController.php +++ b/lib/Controller/LockController.php @@ -130,7 +130,7 @@ public function unlocking(string $fileId): DataResponse { $lock = $this->lockService->getLockFromFileId((int)$fileId); $response = new DataResponse(); $response->setStatus(Http::STATUS_LOCKED); - $response->setData($lock->jsonSerialize()); + $response->setData($lock); return $response; } catch (Exception $e) { return $this->fail($e);