Preserve proposal outcomes and classify filtered proposals
This commit is contained in:
@@ -71,11 +71,11 @@ func ExecuteModuleProposal(ctx context.Context, req ModuleProposalRequest) (cont
|
||||
DiagnosticsDir: req.ProposalRequest.DiagnosticsDir,
|
||||
})
|
||||
if err != nil {
|
||||
return contracts.ProposalResult{}, err
|
||||
return contracts.ProposalResult{Operations: generated.Operations}, err
|
||||
}
|
||||
|
||||
return contracts.ProposalResult{
|
||||
Proposals: generated.Corrections,
|
||||
Warnings: generated.Warnings,
|
||||
Proposals: generated.Corrections,
|
||||
Operations: generated.Operations,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user