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