Skip to content

Commit

Permalink
Reset savepoints when resetting instances
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Sep 27, 2024
1 parent b5d3996 commit 783a5da
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@ class ProjectResetter(
}

private fun resetInstances() {
entitiesRepositoryFactory.create(projectId).clear()

if (!instancesDataService.deleteAll(projectId) ||
!deleteFolderContent(storagePaths.instancesDir)
) {
failedResetActions.add(ResetAction.RESET_INSTANCES)
} else {
entitiesRepositoryFactory.create(projectId).clear()
savepointsRepositoryProvider.create(projectId).deleteAll()
}
}

Expand Down

0 comments on commit 783a5da

Please sign in to comment.