aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Data
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-11 23:52:43 -0700
committerFuwn <[email protected]>2025-06-11 23:52:43 -0700
commit1bc4488a06db88597327ecc855c5b70a7ddc55ce (patch)
treeded544d953d4b62fc4365c2758d75f02efe7d625 /src/lib/Data
parentfix: Migrate localStorage.removeItem to localforage for anime and manga stores (diff)
downloaddue.moe-1bc4488a06db88597327ecc855c5b70a7ddc55ce.tar.xz
due.moe-1bc4488a06db88597327ecc855c5b70a7ddc55ce.zip
style: Reformat using latest formatting
Diffstat (limited to 'src/lib/Data')
-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 d10a5da7..2c16fb1f 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 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 (