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

@@ -43,7 +43,7 @@ func (r *evidenceResolver) File(ctx context.Context, obj *types.Evidence) (*type
return nil, gqlutils.Internal(ctx)
}
return types.NewFile(file), nil
return types.NewFile(file, r.baseURL), nil
}
// Task is the resolver for the task field.