diff options
Diffstat (limited to 'src/lib/Data/AniList/wrapped.ts')
| -rw-r--r-- | src/lib/Data/AniList/wrapped.ts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/Data/AniList/wrapped.ts b/src/lib/Data/AniList/wrapped.ts index 4ca9f772..5b47820a 100644 --- a/src/lib/Data/AniList/wrapped.ts +++ b/src/lib/Data/AniList/wrapped.ts @@ -65,8 +65,10 @@ const profileActivities = async ( query: `{ Page(page: ${page}) { activities(userId: ${identity.id}, type_in: [ TEXT, MESSAGE ], createdAt_greater: ${Math.floor( - new Date(date.getFullYear(), 0, 1).getTime() / 1000 - )}, createdAt_lesser: ${Math.floor(new Date(date.getFullYear(), 7, 1).getTime() / 1000)}) { + new Date(date.getFullYear(), 0, 1).getTime() / 1000 + )}, createdAt_lesser: ${Math.floor( + new Date(date.getFullYear(), 7, 1).getTime() / 1000 + )}) { ... on TextActivity { type createdAt @@ -133,8 +135,9 @@ export const wrapped = async ( }; if (anilistAuthorisation) { - headers['Authorization'] = - `${anilistAuthorisation.tokenType} ${anilistAuthorisation.accessToken}`; + headers[ + 'Authorization' + ] = `${anilistAuthorisation.tokenType} ${anilistAuthorisation.accessToken}`; } const wrappedResponse = await ( |