fix(medusa): throw proper error when product doesn't exist w/ key header (#5745)

**What**
- ensure that an error is raised properly if the requested product doesn't exist and a publishable-key header is set

**Why**
- previously endpoints would hang if the product didn't exist and requests would time out


closes #5724
This commit is contained in:
Philip Korsholm
2023-11-28 10:24:50 +00:00
committed by GitHub
parent 870d686136
commit e4bfa6c88a
4 changed files with 92 additions and 24 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa": patch
---
fix(medusa): raise error properly in api-key middleware if product is not found