Skip to content

Commit

Permalink
second try
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-coding committed Sep 9, 2024
1 parent 54825a6 commit 5d715b3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import gropius.repository.template.ComponentTemplateRepository
import gropius.service.NodeBatchUpdateContext
import gropius.service.common.NamedNodeService
import io.github.graphglue.authorization.Permission
import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.springframework.stereotype.Service

Expand Down Expand Up @@ -99,7 +98,7 @@ class ViewService(
input.validate()
val view = repository.findById(input.id)
checkManageViewsPermission(view.project().value, authorizationContext)
nodeRepository.deleteAll(view.relationLayouts() + view.relationLayouts()).awaitSingle()
nodeRepository.deleteAll(view.relationLayouts() + view.relationLayouts()).awaitSingleOrNull()
repository.delete(view).awaitSingleOrNull()
}

Expand Down

0 comments on commit 5d715b3

Please sign in to comment.