Skip to content

Conversation

@tomaszburas
Copy link
Collaborator

No description provided.

@tomaszburas tomaszburas self-assigned this Dec 3, 2025
@medusajs
Copy link

medusajs bot commented Dec 3, 2025

Name Deployment Status Preview Link Timestamp
Api - mercur - sales sandbox ✅ Ready Preview Tue, 23 Dec 2025 13:36:51 GMT

@railway-app
Copy link

railway-app bot commented Dec 3, 2025

🚅 Deployed to the mercur-pr-541 environment in [DEV & QA] mercur-internal

Service Status Web Updated (UTC)
mercur ✅ Success (View Logs) Web Dec 23, 2025 at 1:33 pm

import { createFindParams } from '@medusajs/medusa/api/utils/validators'
import { createFindParams } from "@medusajs/medusa/api/utils/validators";

const dateFilterSchema = z
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe here you can use Medusa's createOperatorMap() function from their API utils?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have extracted dateFilterSchema to shared location in packages/modules/b2c-core/src/shared/infra/http/utils/zod.ts
We can use Miłosz solution until we figure out if we want to make a switch to bracket notation on FE and then on backend use Medusa'screateOperatorMap().

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants