Skip to content

Commit

Permalink
Avoding upserting redundant the root admin
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChenX committed Dec 21, 2024
1 parent dcd1716 commit 105a4ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected void loadAndListenAdmins() {
for (Admin admin : admins) {
if (admin.getRoleIds()
.contains(ADMIN_ROLE_ROOT_ID)) {
break;
return Mono.empty();
}
}
return addRootAdmin().onErrorMap(t -> new RuntimeException(
Expand Down

0 comments on commit 105a4ac

Please sign in to comment.