Skip to content

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

fix: typo (#6063)

Liu Ji6fbfbba5d912
diff --git a/backend/api/v1/project_service.go b/backend/api/v1/project_service.go
index b4c8acb6c9..92059df4c7 100644
--- a/backend/api/v1/project_service.go
+++ b/backend/api/v1/project_service.go
@@ -210,8 +210,8 @@ func (s *ProjectService) UndeleteProject(ctx context.Context, request *v1pb.Unde
return convertToProject(project), nil
}
-// SarchProjects searches all projects that the caller have permission to.
-func (s *ProjectService) SarchProjects(ctx context.Context, _ *v1pb.SearchProjectsRequest) (*v1pb.SearchProjectsResponse, error) {
+// SearchProjects searches all projects that the caller have permission to.
+func (s *ProjectService) SearchProjects(ctx context.Context, _ *v1pb.SearchProjectsRequest) (*v1pb.SearchProjectsResponse, error) {
principalID := ctx.Value(common.PrincipalIDContextKey).(int)
role := ctx.Value(common.RoleContextKey).(api.Role)