From 7ee5d348dddca54f09f6a6048e1f77f38d2a0dda Mon Sep 17 00:00:00 2001 From: yudejp Date: Wed, 22 Sep 2021 07:19:12 +0900 Subject: [PATCH] Fix: avoid doing export default and val declare at the same time --- pages/api/Spotify.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/api/Spotify.js b/pages/api/Spotify.js index a56be0b..65ee76d 100644 --- a/pages/api/Spotify.js +++ b/pages/api/Spotify.js @@ -36,7 +36,7 @@ export const getNowPlaying = async () => { }); }; -export default async (_, res) => { +const Spotify = async (_, res) => { const response = await getNowPlaying(); if (response.status === 204 || response.status > 400) { @@ -55,4 +55,6 @@ export default async (_, res) => { isPlaying, title, }); -}; \ No newline at end of file +}; + +export default Spotify \ No newline at end of file