diff options
| author | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-04 11:50:21 +0700 |
|---|---|---|
| committer | trisusilo48 <tri.susilo@altama.co.id> | 2024-12-04 11:50:21 +0700 |
| commit | 4c8d08def514cb441007c0bd2bc78e105e6d0153 (patch) | |
| tree | 11d10d069df4254a2cdc70281cc5b462c196dd05 /src/pages/api | |
| parent | 57f400411555351f0b96799f5e4493c9c49b68e0 (diff) | |
cr popup information method
Diffstat (limited to 'src/pages/api')
| -rw-r--r-- | src/pages/api/hero-banner.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pages/api/hero-banner.js b/src/pages/api/hero-banner.js index 7a348cfa..b7f3c1c5 100644 --- a/src/pages/api/hero-banner.js +++ b/src/pages/api/hero-banner.js @@ -28,6 +28,8 @@ export default async function handler(req, res) { `/api/v1/banner?type=${type}` ); + if(!dataBannerSections) return res.status(200).json({ data: [] }); + // Simpan hasil fetch ke Redis dengan masa kadaluarsa 3 hari (259200 detik) await client.set( cacheKey, |
