Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Should use patch’s UpdaterId to set the db value

天舟dd08ba1f220b
diff --git a/backend/store/principal.go b/backend/store/principal.go
index 194e077ce8..fd71d3dadd 100644
--- a/backend/store/principal.go
+++ b/backend/store/principal.go
@@ -254,7 +254,7 @@ func patchPrincipal(ctx context.Context, tx *Tx, id int, patch *api.PrincipalPat
RETURNING *
`,
principal.Name,
- principal.UpdaterId,
+ patch.UpdaterId,
id,
)
if err != nil {