0
0
mirror of https://github.com/yude-jp/yude.jp synced 2025-10-12 19:28:43 +09:00

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

This commit is contained in:
2021-09-22 07:19:12 +09:00
parent 24cf758cad
commit 7ee5d348dd

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) {
@@ -56,3 +56,5 @@ export default async (_, res) => {
title,
});
};
export default Spotify