diff --git a/src/server/api/routes/bookstore/index.js b/src/server/api/routes/bookstore/index.js index ab16396b3..104c5d428 100644 --- a/src/server/api/routes/bookstore/index.js +++ b/src/server/api/routes/bookstore/index.js @@ -40,7 +40,7 @@ router.get('/bookstore/products', async (req, res, next) => { const { limit: pageSize, offset, tag } = req.query; const tagId = tag || 'all'; - + console.log('/bookstore/products', offset); const result = await fetchAirtableCMSProductsByTagId(tagId, { pageSize, offset: Array.isArray(offset) ? offset.join('/') : offset, @@ -55,6 +55,8 @@ router.get('/bookstore/products', async (req, res, next) => { res.json(result); } catch (error) { + console.error('/bookstore/products', error); + if (error.response?.status === 422) { res.status(404).send('TAG_NOT_FOUND'); return;