From 03799f4b8bee3d43b54a79f3c9a01084cee60338 Mon Sep 17 00:00:00 2001 From: William Chong Date: Wed, 18 Dec 2024 21:55:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20Author=20in=20bookstore=20?= =?UTF-8?q?api=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/api/util/airtable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/api/util/airtable.js b/src/server/api/util/airtable.js index bca1fbca9..c1e74ec6d 100644 --- a/src/server/api/util/airtable.js +++ b/src/server/api/util/airtable.js @@ -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; @@ -59,6 +60,7 @@ async function fetchAirtableCMSProductsByTagId( classIds: isMultiple ? classIds : undefined, title, titles: isMultiple ? titles : undefined, + author, imageUrl, imageUrls: isMultiple ? imageUrls : undefined, locales,