stupid hooks rules

This commit is contained in:
danis
2023-12-07 20:08:21 +01:00
parent 5d103c6687
commit 11ed8f90fd
4 changed files with 45 additions and 41 deletions
+14 -14
View File
@@ -781,17 +781,17 @@ export default class API {
return `${API.baseUrl}/song/${songId}/assets/partition`;
}
public static searchSongs(query: searchProps): Query<Song[]> {
return {
key: ['search'],
exec: () => {
return API.fetch(
{
route: `/search/songs/`,
},
{ handler: ListHandler(SongHandler) }
)
}
}
}
}
public static searchSongs(query: searchProps): Query<Song[]> {
return {
key: ['search'],
exec: () => {
return API.fetch(
{
route: `/search/songs/${query.query}`,
},
{ handler: ListHandler(SongHandler) }
);
},
};
}
}