Compute stable URL in types.NewFile, wire baseURL into console v1 Resolver

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-06-10 09:25:20 +02:00
parent 6693ee4bf4
commit 3f484ac330
7 changed files with 27 additions and 11 deletions

View File

@@ -90,7 +90,7 @@ func (r *auditResolver) ReportFile(ctx context.Context, obj *types.Audit) (*type
return nil, gqlutils.Internal(ctx)
}
return types.NewFile(file), nil
return types.NewFile(file, r.baseURL), nil
}
// Controls is the resolver for the controls field.