diff options
Diffstat (limited to 'src/lib/Data/AniList/following.ts')
| -rw-r--r-- | src/lib/Data/AniList/following.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Data/AniList/following.ts b/src/lib/Data/AniList/following.ts index 60bb3ccc..b8184e53 100644 --- a/src/lib/Data/AniList/following.ts +++ b/src/lib/Data/AniList/following.ts @@ -1,4 +1,4 @@ -import { user, type User } from "./user"; +import { type User, user } from "./user"; export interface FollowingPage { data: { @@ -46,7 +46,7 @@ export const followers = async (name: string): Promise<Partial<User>[]> => { for (const activity of currentPage.data.Page.following) activities.push(activity); - while (currentPage["data"]["Page"]["pageInfo"]["hasNextPage"]) { + while (currentPage.data.Page.pageInfo.hasNextPage) { for (const activity of currentPage.data.Page.following) activities.push(activity); |