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

@@ -1064,7 +1064,7 @@ func (r *thirdPartyComplianceReportResolver) File(ctx context.Context, obj *type
return nil, gqlutils.Internal(ctx)
}
return types.NewFile(file), nil
return types.NewFile(file, r.baseURL), nil
}
// Permission is the resolver for the permission field.