diff options
Diffstat (limited to 'src/lib/Data/AniList/wrapped.ts')
| -rw-r--r-- | src/lib/Data/AniList/wrapped.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/Data/AniList/wrapped.ts b/src/lib/Data/AniList/wrapped.ts index f9302b90..62aff010 100644 --- a/src/lib/Data/AniList/wrapped.ts +++ b/src/lib/Data/AniList/wrapped.ts @@ -64,10 +64,8 @@ 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 @@ -131,9 +129,8 @@ export const wrapped = async ( }; if (anilistAuthorisation) { - headers[ - 'Authorization' - ] = `${anilistAuthorisation.tokenType} ${anilistAuthorisation.accessToken}`; + headers['Authorization'] = + `${anilistAuthorisation.tokenType} ${anilistAuthorisation.accessToken}`; } const wrappedResponse = await ( |