Skip to content

Commit

Permalink
fix: fixed inaccurate saved tracks return type (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
braydenbabbitt authored Jul 15, 2024
1 parent b3d070e commit 34d6dbe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions endpoints/track/track.endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ export type GetSavedTracksOpts = Prettify<
export const getSavedTracks = async (
client: HTTPClient,
options: GetSavedTracksOpts,
): Promise<PagingObject<Track>> => {
): Promise<PagingObject<{ added_at: string; track: Track }>> => {
const res = await client.fetch("/v1/me/tracks", {
query: options,
});
return res.json() as Promise<PagingObject<Track>>;
return res.json() as Promise<
PagingObject<{ added_at: string; track: Track }>
>;
};

/**
Expand Down

0 comments on commit 34d6dbe

Please sign in to comment.