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:
parent
24cf758cad
commit
7ee5d348dd
@ -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
|
Loading…
Reference in New Issue
Block a user