Skip to content

Commit

Permalink
fix more invalid deletes
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-coding committed Sep 25, 2024
1 parent 788bc17 commit 07ff488
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class IntraComponentDependencySpecificationService(
)
}
}
intraComponentDependencyParticipantRepository.deleteAll(participantsToRemove)
intraComponentDependencyParticipantRepository.deleteAll(participantsToRemove).awaitSingleOrNull()
if (participants.isEmpty()) {
throw IllegalArgumentException("$propertyName must not be empty")
}
Expand Down Expand Up @@ -194,7 +194,7 @@ class IntraComponentDependencySpecificationService(
val allParticipants = intraComponentDependencySpecification.let {
it.outgoingParticipants() + it.incomingParticipants()
}
intraComponentDependencyParticipantRepository.deleteAll(allParticipants)
intraComponentDependencyParticipantRepository.deleteAll(allParticipants).awaitSingleOrNull()
repository.delete(intraComponentDependencySpecification).awaitSingleOrNull()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class ProjectService(
project, Permission(NodePermission.ADMIN, authorizationContext), "delete the Project"
)
beforeDeleteTrackable(project)
nodeRepository.deleteAll(project.relationLayouts() + project.relationLayouts()).awaitSingle()
nodeRepository.deleteAll(project.relationLayouts() + project.relationLayouts()).awaitSingleOrNull()
repository.delete(project).awaitSingleOrNull()
}

Expand Down

0 comments on commit 07ff488

Please sign in to comment.