Skip to content

Commit

Permalink
🔊 Add log to pinpoint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nwingt committed Jan 24, 2025
1 parent d1f50ae commit 38adacd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/api/routes/bookstore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Check warning on line 43 in src/server/api/routes/bookstore/index.js

View workflow job for this annotation

GitHub Actions / Deploy

Unexpected console statement

Check warning on line 43 in src/server/api/routes/bookstore/index.js

View workflow job for this annotation

GitHub Actions / CI

Unexpected console statement
const result = await fetchAirtableCMSProductsByTagId(tagId, {
pageSize,
offset: Array.isArray(offset) ? offset.join('/') : offset,
Expand All @@ -55,6 +55,8 @@ router.get('/bookstore/products', async (req, res, next) => {

res.json(result);
} catch (error) {
console.error('/bookstore/products', error);

Check warning on line 58 in src/server/api/routes/bookstore/index.js

View workflow job for this annotation

GitHub Actions / Deploy

Unexpected console statement

Check warning on line 58 in src/server/api/routes/bookstore/index.js

View workflow job for this annotation

GitHub Actions / CI

Unexpected console statement

if (error.response?.status === 422) {
res.status(404).send('TAG_NOT_FOUND');
return;
Expand Down

0 comments on commit 38adacd

Please sign in to comment.