mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
don't pass song all the way down
This commit is contained in:
@@ -967,7 +967,7 @@ const getSimilarSongs = async (args: SimilarSongsArgs): Promise<Song[]> => {
|
||||
|
||||
const res = await jfApiClient(apiClientProps).getSimilarSongs({
|
||||
params: {
|
||||
itemId: query.song.id,
|
||||
itemId: query.songId,
|
||||
},
|
||||
query: {
|
||||
Fields: 'Genres, DateCreated, MediaSources, ParentId',
|
||||
|
||||
@@ -452,7 +452,7 @@ const getSimilarSongs = async (args: SimilarSongsArgs): Promise<Song[]> => {
|
||||
const res = await ssApiClient(apiClientProps).getSimilarSongs({
|
||||
query: {
|
||||
count: query.count,
|
||||
id: query.song.id,
|
||||
id: query.songId,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -1173,7 +1173,7 @@ export type StructuredLyric = {
|
||||
|
||||
export type SimilarSongsQuery = {
|
||||
count?: number;
|
||||
song: Song;
|
||||
songId: string;
|
||||
};
|
||||
|
||||
export type SimilarSongsArgs = {
|
||||
|
||||
Reference in New Issue
Block a user