Skip to content

Commit

Permalink
Update Spotify.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
rizzlogy authored Oct 21, 2023
1 parent aaddda9 commit 71e7501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spotify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default class SpotifyFetcher extends SpotifyApi {
return await this.extractPlaylist(this.getID(originalUrl))
}

getID = async (url: string): string => {
getID = async (url: string): promise<string> => {
const originalUrl = await this.getOriginalUrl(url)
const splits = originalUrl.split('/')
return splits[splits.length - 1]
Expand Down

0 comments on commit 71e7501

Please sign in to comment.