Skip to content

Commit

Permalink
fix: use correct dataref for json schema (#884)
Browse files Browse the repository at this point in the history
The console was erroring due to this issue.

All good with this fix added.
  • Loading branch information
wesbillman authored Feb 6, 2024
1 parent 745fe53 commit 2142e19
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backend/controller/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ func (c *ConsoleService) GetModules(ctx context.Context, req *connect.Request[pb
if !ok {
return nil, fmt.Errorf("expected request to be a data ref, got %T", verbSchema.Request)
}
dataRef := schema.DataRef{
Module: requestData.Module,
Name: requestData.Name,
}
jsonRequestSchema, err := schema.DataToJSONSchema(sch, dataRef)
jsonRequestSchema, err := schema.DataToJSONSchema(sch, *requestData)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 2142e19

Please sign in to comment.