Fix url not set

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-05-01 00:06:11 -07:00
parent 68e60bc3c6
commit 7be0d964e2

View File

@@ -941,6 +941,7 @@ func (r *mutationResolver) CreateEvidence(ctx context.Context, input types.Creat
if input.URL == nil || *input.URL == "" {
return nil, fmt.Errorf("URL is required for LINK type evidence")
}
req.URL = *input.URL
}
evidence, err := svc.Evidences.Create(ctx, req)