Skip to content

Commit

Permalink
Review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SWH-Relewise committed Aug 12, 2024
1 parent 5deef24 commit c526467
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ export class SearchConstraintBuilder {
private resultConstraint: ProductSearchResultConstraint | null = null;

public setResultMustHaveVariantConstraint(constaint: { exceptWhenProductHasNoVariants: boolean }): this {
this.resultConstraint = {
const constraint: ResultMustHaveVariantConstraint = {
$type: 'Relewise.Client.Requests.Search.Settings.ResultMustHaveVariantConstraint, Relewise.Client',
...constaint,
} as ResultMustHaveVariantConstraint;
};

this.resultConstraint = constraint;
return this;
}

Expand Down

0 comments on commit c526467

Please sign in to comment.