fix: errors thrown in transformer (#7480)

* chore: wup

* throw on error

* add back test

---------

Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com>
This commit is contained in:
Oli JuhlandCarlos R. L. Rodrigues authored and GitHub committed 2024-05-28 08:44:33 +02:00
1 parent 2f20dbd50d
commit ad21bd30b1
3 files changed
+10 -7

No files matched your search

@@ -1,8 +1,8 @@
import { listShippingOptionsForCartWorkflow } from "@medusajs/core-flows"
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
import { ICartModuleService } from "@medusajs/types"
import { MedusaRequest, MedusaResponse } from "../../../types/routing"
import { MedusaError } from "@medusajs/utils"
import { MedusaRequest, MedusaResponse } from "../../../types/routing"
export const GET = async (req: MedusaRequest, res: MedusaResponse) => {
const { cart_id } = req.filterableFields as { cart_id: string }