Skip to content

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

fix: typo (#2235)

p0ny3b0af9f7e55c
diff --git a/frontend/src/store/modules/auth.ts b/frontend/src/store/modules/auth.ts
index f3e094aca7..ffb030e2cd 100644
--- a/frontend/src/store/modules/auth.ts
+++ b/frontend/src/store/modules/auth.ts
@@ -65,13 +65,13 @@ export const useAuthStore = defineStore("auth", {
return convertedUser;
},
async logout() {
- const unknownPrinciple = unknown("PRINCIPAL") as Principal;
+ const unknownPrincipal = unknown("PRINCIPAL") as Principal;
try {
await axios.post("/api/auth/logout");
} finally {
- this.setCurrentUser(unknownPrinciple);
+ this.setCurrentUser(unknownPrincipal);
}
- return unknownPrinciple;
+ return unknownPrincipal;
},
async signup(signupInfo: SignupInfo) {
const newUser = (
diff --git a/server/project.go b/server/project.go
index 9b3eee0771..c391d66b06 100644
--- a/server/project.go
+++ b/server/project.go
@@ -100,7 +100,7 @@ func (s *Server) registerProjectRoutes(g *echo.Group) {
if projectFind.PrincipalID != nil {
principalID := *projectFind.PrincipalID
for _, project := range projectList {
- // We will filter those project with the current principle as an inactive member (the role provider differs from that of the project)
+ // We will filter those project with the current principal as an inactive member (the role provider differs from that of the project)
roleProvider := project.RoleProvider
for _, projectMember := range project.ProjectMemberList {
if projectMember.PrincipalID == principalID && projectMember.RoleProvider == roleProvider {
diff --git a/server/webhook.go b/server/webhook.go
index 1bdedc321b..79ec742e89 100644
--- a/server/webhook.go
+++ b/server/webhook.go
@@ -511,19 +511,19 @@ func (s *Server) createIssueFromPushEvent(ctx context.Context, repo *api.Reposit
// Create schema update issue.
creatorID := api.SystemBotID
if pushEvent.FileCommit.AuthorEmail != "" {
- committerPrinciple, err := s.store.GetPrincipalByEmail(ctx, pushEvent.FileCommit.AuthorEmail)
+ committerPrincipal, err := s.store.GetPrincipalByEmail(ctx, pushEvent.FileCommit.AuthorEmail)
if err != nil {
log.Error("failed to find the principal with committer email",
zap.String("email", common.EscapeForLogging(pushEvent.FileCommit.AuthorEmail)),
zap.Error(err),
)
}
- if committerPrinciple == nil {
+ if committerPrincipal == nil {
log.Debug("cannot find the principal with committer email, use system bot instead",
zap.String("email", common.EscapeForLogging(pushEvent.FileCommit.AuthorEmail)),
)
} else {
- creatorID = committerPrinciple.ID
+ creatorID = committerPrincipal.ID
}
}