Skip to content

Commit

Permalink
feat(medusa): add sku to variant query params
Browse files Browse the repository at this point in the history
  • Loading branch information
riqwan committed Jan 25, 2025
1 parent c1ae373 commit fb036b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/medusa/src/api/store/products/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const StoreGetProductParams = createSelectParams().merge(
export const StoreGetProductVariantsParamsFields = z.object({
q: z.string().optional(),
id: z.union([z.string(), z.array(z.string())]).optional(),
sku: z.union([z.string(), z.array(z.string())]).optional(),
options: z.object({ value: z.string(), option_id: z.string() }).optional(),
created_at: createOperatorMap().optional(),
updated_at: createOperatorMap().optional(),
Expand Down Expand Up @@ -64,7 +65,6 @@ export const StoreGetProductsParams = createFindParams({
z
.object({
variants: z

.object({
options: z
.object({ value: z.string(), option_id: z.string() })
Expand Down

0 comments on commit fb036b8

Please sign in to comment.