From 63d2a0eb1bb55301cb4d3c6399c04c59d376c1f6 Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Thu, 24 Nov 2022 16:16:35 +0100 Subject: [PATCH] fix(strip): Hooks import was wrong (#2666) * fix(strip): Hooks import was wrong * Create nervous-insects-switch.md --- .changeset/nervous-insects-switch.md | 6 ++++++ .../medusa-payment-stripe/src/api/routes/hooks/stripe.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/nervous-insects-switch.md diff --git a/.changeset/nervous-insects-switch.md b/.changeset/nervous-insects-switch.md new file mode 100644 index 0000000000..90d46e861d --- /dev/null +++ b/.changeset/nervous-insects-switch.md @@ -0,0 +1,6 @@ +--- +"medusa-payment-stripe": patch +"@medusajs/medusa": patch +--- + +fix(strip): Hooks import was wrong diff --git a/packages/medusa-payment-stripe/src/api/routes/hooks/stripe.js b/packages/medusa-payment-stripe/src/api/routes/hooks/stripe.js index 1ea4aa6c3a..7fedd77846 100644 --- a/packages/medusa-payment-stripe/src/api/routes/hooks/stripe.js +++ b/packages/medusa-payment-stripe/src/api/routes/hooks/stripe.js @@ -1,4 +1,4 @@ -import { PostgresError } from "@medusajs/medusa/src/utils" +import { PostgresError } from "@medusajs/medusa/dist/utils" export default async (req, res) => { const signature = req.headers["stripe-signature"]