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
1 changed files with 4 additions and 2 deletions

View File

@ -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,
});
};
};
export default Spotify