aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data/AniList
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-22 22:09:45 -0800
committerFuwn <[email protected]>2026-01-22 22:09:45 -0800
commit3dc247717122628793ee88f0cd855c3d8c5afbd7 (patch)
tree8dd332ca02d417975a6098ad0e1adb6bdd0c74a8 /src/lib/Data/AniList
parentfix(deps): Pin SvelteKit and adapter versions for sveltekit-graphql compatibi... (diff)
downloaddue.moe-3dc247717122628793ee88f0cd855c3d8c5afbd7.tar.xz
due.moe-3dc247717122628793ee88f0cd855c3d8c5afbd7.zip
format: Apply Prettier formatting
Diffstat (limited to 'src/lib/Data/AniList')
-rw-r--r--src/lib/Data/AniList/activity.ts4
-rw-r--r--src/lib/Data/AniList/wrapped.ts11
2 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/Data/AniList/activity.ts b/src/lib/Data/AniList/activity.ts
index d594557e..afe3cef3 100644
--- a/src/lib/Data/AniList/activity.ts
+++ b/src/lib/Data/AniList/activity.ts
@@ -169,8 +169,8 @@ const activitiesPage = async (
Page(page: ${page}) {
pageInfo { hasNextPage }
activities(userId: ${userIdentity.id}, createdAt_greater: ${Math.floor(
- new Date(year, 0, 1).getTime() / 1000
- )}, createdAt_lesser: ${Math.floor(new Date(year, 7, 1).getTime() / 1000)}) {
+ new Date(year, 0, 1).getTime() / 1000
+ )}, createdAt_lesser: ${Math.floor(new Date(year, 7, 1).getTime() / 1000)}) {
... on TextActivity { createdAt }
... on ListActivity { createdAt }
... on MessageActivity { createdAt }
diff --git a/src/lib/Data/AniList/wrapped.ts b/src/lib/Data/AniList/wrapped.ts
index 5b47820a..4ca9f772 100644
--- a/src/lib/Data/AniList/wrapped.ts
+++ b/src/lib/Data/AniList/wrapped.ts
@@ -65,10 +65,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
@@ -135,9 +133,8 @@ export const wrapped = async (
};
if (anilistAuthorisation) {
- headers[
- 'Authorization'
- ] = `${anilistAuthorisation.tokenType} ${anilistAuthorisation.accessToken}`;
+ headers['Authorization'] =
+ `${anilistAuthorisation.tokenType} ${anilistAuthorisation.accessToken}`;
}
const wrappedResponse = await (