diff --git a/boot/platform/src/main/java/com/platform/boot/relational/menus/MenusService.java b/boot/platform/src/main/java/com/platform/boot/relational/menus/MenusService.java index cd67a501..9562393c 100644 --- a/boot/platform/src/main/java/com/platform/boot/relational/menus/MenusService.java +++ b/boot/platform/src/main/java/com/platform/boot/relational/menus/MenusService.java @@ -88,8 +88,8 @@ public Mono delete(MenuRequest request) { } var deleteAuthorityMono = Flux.concatDelayError(this.groupAuthoritiesRepository.deleteByAuthorityIn(rules), this.userAuthoritiesRepository.deleteByAuthorityIn(rules)); - var deleteNextMono = Flux.concatDelayError(this.menusRepository.deleteByAuthority( - request.getAuthority()), deleteAuthorityMono); + var deleteNextMono = Flux.concatDelayError( + this.menusRepository.deleteByAuthority(request.getAuthority()), deleteAuthorityMono); return deleteNextMono.then().doAfterTerminate(() -> this.cache.clear()); } else { return this.menusRepository.delete(request.toMenu()).doAfterTerminate(() -> this.cache.clear());