Skip to content

Commit

Permalink
fix: Only cleanup earlier steps that haven't been persisted yet to th…
Browse files Browse the repository at this point in the history
…e state file

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Mar 15, 2024
1 parent e28cf61 commit ec37749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/DocumentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ public function resetDocument(int $documentId, bool $force = false): void {

$this->unlock($documentId);

$this->stepMapper->deleteAll($documentId);
$this->stepMapper->deleteBeforeVersion($documentId, $document->getLastSavedVersion());
$this->sessionMapper->deleteByDocumentId($documentId);
$this->documentMapper->delete($document);
$this->getStateFile($documentId)->delete();
Expand Down

0 comments on commit ec37749

Please sign in to comment.