0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-22 20:20:09 +09:00

Fix: avoid doing export default and val declare at the same time

This commit is contained in:
yude 2021-09-22 07:19:12 +09:00
parent 24cf758cad
commit 7ee5d348dd
Signed by: yude
GPG Key ID: EB0FE5D925C4A968

View File

@ -36,7 +36,7 @@ export const getNowPlaying = async () => {
}); });
}; };
export default async (_, res) => { const Spotify = async (_, res) => {
const response = await getNowPlaying(); const response = await getNowPlaying();
if (response.status === 204 || response.status > 400) { if (response.status === 204 || response.status > 400) {
@ -55,4 +55,6 @@ export default async (_, res) => {
isPlaying, isPlaying,
title, title,
}); });
}; };
export default Spotify