Skip to content
Prev Previous commit
Next Next commit
fix: Cleanup attachments on itinial document cleanup
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored and backportbot-nextcloud[bot] committed Mar 9, 2023
commit 4eac11d2ef988ccab516ee5bb0f902559b480977
1 change: 1 addition & 0 deletions lib/Service/ApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public function create($fileId = null, $filePath = null, $token = null, $guestNa
try {
$this->logger->info('Attempt to reset document during session create for ' . $file->getId());
$this->documentService->resetDocument($file->getId(), $forceRecreate);
$this->attachmentService->cleanupAttachments($file->getId());
} catch (DocumentHasUnsavedChangesException $e) {
$this->logger->debug('Failed to reset document during session create for ' . $file->getId(), [
'remainingSessions' => $remainingSessions,
Expand Down