diff --git a/lib/api.ts b/lib/api.ts index 5046855..5b61999 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -65,7 +65,7 @@ export async function getSongsWithTitles(userId: number) { }); // Extract unique musicIds from the fetched songs - const musicIds = songs + const chuniScorePlaylogMusicId = songs .map((song) => song.musicId) .filter((id) => id !== null) as number[]; @@ -74,7 +74,7 @@ export async function getSongsWithTitles(userId: number) { await artemis.chuni_static_music.findMany({ where: { songId: { - in: musicIds, + in: chuniScorePlaylogMusicId, }, }, select: {