Skip to content

Commit

Permalink
fix: correctly handle on conflict for inserting user privilege (#15629)
Browse files Browse the repository at this point in the history
  • Loading branch information
yezizp2012 authored and jetjinser committed Mar 14, 2024
1 parent eb9daeb commit 5f51b5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/meta/src/controller/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,10 @@ impl CatalogController {
} else {
on_conflict.do_nothing();
}

UserPrivilege::insert(privilege)
.on_conflict(on_conflict)
.do_nothing()
.exec(&txn)
.await?;
}
Expand Down

0 comments on commit 5f51b5e

Please sign in to comment.