fix: Remove obsolete code.

This commit is contained in:
Pol Dellaiera 2021-09-29 22:38:48 +02:00
parent 9a34aa59bb
commit 7f721da08a

View File

@ -95,26 +95,6 @@ final class ChillWopi implements WopiInterface
'UserInfo' => (string) $this->cache->getItem($userCacheKey)->get(),
]
)));
$response = $this->wopi->checkFileInfo($fileId, $accessToken, $request);
$document = $this->documentManager->findByDocumentId($fileId);
$body = json_decode((string) $response->getBody(), true);
return $response
->withBody(
$this
->psr17
->createStream(
(string) json_encode(
$body +
[
'Version' => sprintf('v%s', $this->documentManager->getVersion($document)),
// TODO: Add column 'LastModifiedDate' in StoredObject entity
'LastModifiedTime' => $this->documentManager->getLastModifiedDate($document)->format('Y-m-d\TH:i:s.uP'),
]
)
)
);
}
public function deleteFile(string $fileId, ?string $accessToken, RequestInterface $request): ResponseInterface