diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php index 12bc1b178..ba289630e 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php @@ -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