rename const
This commit is contained in:
@ -65,7 +65,7 @@ export async function getSongsWithTitles(userId: number) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Extract unique musicIds from the fetched songs
|
// Extract unique musicIds from the fetched songs
|
||||||
const musicIds = songs
|
const chuniScorePlaylogMusicId = songs
|
||||||
.map((song) => song.musicId)
|
.map((song) => song.musicId)
|
||||||
.filter((id) => id !== null) as number[];
|
.filter((id) => id !== null) as number[];
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ export async function getSongsWithTitles(userId: number) {
|
|||||||
await artemis.chuni_static_music.findMany({
|
await artemis.chuni_static_music.findMany({
|
||||||
where: {
|
where: {
|
||||||
songId: {
|
songId: {
|
||||||
in: musicIds,
|
in: chuniScorePlaylogMusicId,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
|
Reference in New Issue
Block a user