Skip to content

Commit

Permalink
v1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
netlob committed Nov 6, 2021
1 parent 04600da commit 8206f5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spotistats/spotify.js",
"version": "1.4.1",
"version": "1.4.2",
"description": "Node wrapper for Spotify, written in TS.",
"main": "dist/index.js",
"private": false,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/me/MeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ export class MeManager extends Manager {

const json = res.data;

const mappedJSON = json.items.map((item) => ({
json.items = json.items.map((item) => ({
...item,
played_at: new Date(item.played_at)
}));

return mappedJSON as CursorPagingObject<RecentlyPlayed>;
return json as CursorPagingObject<RecentlyPlayed>;
}
}

0 comments on commit 8206f5a

Please sign in to comment.