Skip to content

Commit

Permalink
πŸ› Add Author in bookstore api response
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Dec 19, 2024
1 parent 6655649 commit 03799f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/api/util/airtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ async function fetchAirtableCMSProductsByTagId(
const classIds = fields.IDs;
const title = fields.Name;
const titles = fields.Names;
const author = fields.Author;
const imageUrl = fields['Image URL'];
const imageUrls = fields['Image URLs'];
const locales = fields.Locales;
Expand All @@ -59,6 +60,7 @@ async function fetchAirtableCMSProductsByTagId(
classIds: isMultiple ? classIds : undefined,
title,
titles: isMultiple ? titles : undefined,
author,
imageUrl,
imageUrls: isMultiple ? imageUrls : undefined,
locales,
Expand Down

0 comments on commit 03799f4

Please sign in to comment.