Skip to content

Commit

Permalink
Merge pull request #173 from nextcloud/fix/noid/data-lock-reponse
Browse files Browse the repository at this point in the history
data is FileLock
  • Loading branch information
ArtificialOwl authored Sep 29, 2023
2 parents 95e70f7 + d17f4f4 commit a868fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/LockController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a868fba

Please sign in to comment.