diff options
Diffstat (limited to 'lib/Service/ApiService.php')
-rw-r--r-- | lib/Service/ApiService.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Service/ApiService.php b/lib/Service/ApiService.php index 351e8fe89..8ff6ddcd5 100644 --- a/lib/Service/ApiService.php +++ b/lib/Service/ApiService.php @@ -160,7 +160,10 @@ class ApiService { $file = $this->documentService->getFileById($documentId); } return new DataResponse([ - 'outsideChange' => $file->getContent() + 'outsideChange' => $file->getContent(), + 'steps' => $this->documentService->getSteps($documentId, $version), + 'sessions' => $this->sessionService->getActiveSessions($documentId), + 'document' => $this->documentService->get($documentId) ], 409); } catch (Exception $e) { return new DataResponse([ @@ -171,7 +174,7 @@ class ApiService { return new DataResponse([ 'steps' => $this->documentService->getSteps($documentId, $version), 'sessions' => $this->sessionService->getActiveSessions($documentId), - 'document' => $document + 'document' => $document ?? $document = $this->documentService->get($documentId) ]); } |