From bfcb073e3252fa783ddfc5325bfd167e210bf1d4 Mon Sep 17 00:00:00 2001 From: seb Date: Mon, 3 Aug 2026 08:38:26 +0200 Subject: [PATCH] fix: unwrap double-nested article response in GET /api/article/:sku --- src/api/routes/article.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/article.js b/src/api/routes/article.js index d6bc96d..2f6e022 100644 --- a/src/api/routes/article.js +++ b/src/api/routes/article.js @@ -308,7 +308,7 @@ export function register(app, basePath = '') { } try { - const article = await db.getBySku(req.user.id, decodeURIComponent(sku)); + const { article } = await db.getBySku(req.user.id, decodeURIComponent(sku)); res.status(200).json({ article }); } catch (error) { const status = articleErrorStatus(error);