Skip to content

Commit

Permalink
chore: change types of search user shows function return
Browse files Browse the repository at this point in the history
  • Loading branch information
okanisildar committed Dec 12, 2023
1 parent 55a395f commit 469869b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/services/spotify/get-user-shows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ type Items = {
};

type SpotifyItems = {
items: Items;
items: Items[];
limit: number;
offset: number;
};

export const getUserShows = async (spotifyToken: string): Promise<Items> => {
export const getUserShows = async (spotifyToken: string): Promise<Items[]> => {
try {
const response = await fetch('https://api.spotify.com/v1/me/shows', {
headers: {
Expand Down

0 comments on commit 469869b

Please sign in to comment.