Avoid returning draft_orders from /orders endpoint (#7302)
This commit is contained in:
@@ -10,7 +10,10 @@ export const GET = async (req: MedusaRequest, res: MedusaResponse) => {
|
||||
const queryObject = remoteQueryObjectFromString({
|
||||
entryPoint: "order",
|
||||
variables: {
|
||||
filters: req.filterableFields,
|
||||
filters: {
|
||||
...req.filterableFields,
|
||||
is_draft_order: false,
|
||||
},
|
||||
...req.remoteQueryConfig.pagination,
|
||||
},
|
||||
fields: req.remoteQueryConfig.fields,
|
||||
|
||||
Reference in New Issue
Block a user