Skip to content

Commit

Permalink
🔀 Merge #2034 into deploy/main
Browse files Browse the repository at this point in the history
  • Loading branch information
nwingt committed Jan 24, 2025
2 parents 4f64acb + 263efe1 commit 7c2e76e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/server/api/routes/bookstore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ router.get('/bookstore/products', async (req, res, next) => {

res.json(result);
} catch (error) {
if (error.response?.status === 422) {
if (
error.response?.status === 422 &&
error.response?.data?.error?.type === 'VIEW_NAME_NOT_FOUND'
) {
res.status(404).send('TAG_NOT_FOUND');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ export const fetchBookstoreCMSTags = ({ limit = 100 } = {}) =>

export const fetchBookstoreCMSProductsByTagId = (
tagId,
{ offset, t = BOOKSTORE_CMS_CACHE_RESET_TIMESTAMP, limit = 100 } = {}
{ offset, t = BOOKSTORE_CMS_CACHE_RESET_TIMESTAMP, limit = 30 } = {}
) => {
const qsPayload = {
tag: tagId,
Expand Down

0 comments on commit 7c2e76e

Please sign in to comment.