feat: Fix subscribers loading + add order <> cart link (#7617)

This commit is contained in:
Oli Juhl
2024-06-09 12:31:28 +02:00
committed by GitHub
parent fbb00f3863
commit 3f661c917b
10 changed files with 99 additions and 76 deletions
@@ -1,11 +1,11 @@
import { completeCartWorkflow } from "@medusajs/core-flows"
import { MedusaError } from "@medusajs/utils"
import { MedusaRequest, MedusaResponse } from "../../../../../types/routing"
import { prepareRetrieveQuery } from "../../../../../utils/get-query-config"
import { refetchOrder } from "../../../orders/helpers"
import { refetchCart } from "../../helpers"
import { defaultStoreCartFields } from "../../query-config"
import { StoreCompleteCartType } from "../../validators"
import { prepareRetrieveQuery } from "../../../../../utils/get-query-config"
export const POST = async (
req: MedusaRequest<StoreCompleteCartType>,