Skip to content

Commit

Permalink
♻️ refactor(服务): 优化了MenusService中删除逻辑的代码格式化问题
Browse files Browse the repository at this point in the history
  • Loading branch information
vnobo committed Jun 5, 2024
1 parent 2c79cba commit 2a87d20
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ public Mono<Void> 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());
Expand Down

0 comments on commit 2a87d20

Please sign in to comment.