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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user