Skip to content

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

fix: typo (#5223)

p0nyf73ca7dd02c7
diff --git a/backend/api/v1/review_service.go b/backend/api/v1/review_service.go
index 133763cc8a..8f2d1f9e9b 100644
--- a/backend/api/v1/review_service.go
+++ b/backend/api/v1/review_service.go
@@ -68,7 +68,7 @@ func (s *ReviewService) ApproveReview(ctx context.Context, request *v1pb.Approve
if !payload.Approval.ApprovalFindingDone {
return nil, status.Errorf(codes.FailedPrecondition, "approval template finding is not done")
}
- if len(payload.Approval.ApprovalTemplates) != 0 {
+ if len(payload.Approval.ApprovalTemplates) != 1 {
return nil, status.Errorf(codes.Internal, "expecting one approval template but got %v", len(payload.Approval.ApprovalTemplates))
}