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);