From 587d3eda31224f7ffb6d54d5715370030931e6a1 Mon Sep 17 00:00:00 2001 From: Faye Date: Fri, 23 Aug 2024 16:12:48 +0200 Subject: [PATCH] update function id --- src/app/[locale]/(main)/users/page.client.tsx | 2 +- .../[locale]/(user)/user/[profileUrl]/followers/page.client.tsx | 2 +- .../[locale]/(user)/user/[profileUrl]/following/page.client.tsx | 2 +- src/utils/actions/account/account.ts | 2 +- src/utils/server-api/followers/getFollowers.ts | 2 +- src/utils/server-api/followers/getFollowing.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/[locale]/(main)/users/page.client.tsx b/src/app/[locale]/(main)/users/page.client.tsx index cdbb781d..4298c41c 100644 --- a/src/app/[locale]/(main)/users/page.client.tsx +++ b/src/app/[locale]/(main)/users/page.client.tsx @@ -25,7 +25,7 @@ export default function ClientPage() { setIsFetching(true) try { const data = await functions.createExecution( - '65e2126d9e431eb3c473', + 'user-endpoints', '', false, `/users?limit=250`, // You can specify a static limit here if desired diff --git a/src/app/[locale]/(user)/user/[profileUrl]/followers/page.client.tsx b/src/app/[locale]/(user)/user/[profileUrl]/followers/page.client.tsx index ee646c24..28b03386 100644 --- a/src/app/[locale]/(user)/user/[profileUrl]/followers/page.client.tsx +++ b/src/app/[locale]/(user)/user/[profileUrl]/followers/page.client.tsx @@ -30,7 +30,7 @@ export default function ClientPage({ setIsFetching(true) try { const data = await functions.createExecution( - '65e2126d9e431eb3c473', + 'user-endpoints', '', false, `/user/followers?userId=${user.$id}&limit=250`, // You can specify a static limit here if desired diff --git a/src/app/[locale]/(user)/user/[profileUrl]/following/page.client.tsx b/src/app/[locale]/(user)/user/[profileUrl]/following/page.client.tsx index 118af975..f4c5b976 100644 --- a/src/app/[locale]/(user)/user/[profileUrl]/following/page.client.tsx +++ b/src/app/[locale]/(user)/user/[profileUrl]/following/page.client.tsx @@ -30,7 +30,7 @@ export default function ClientPage({ setIsFetching(true) try { const data = await functions.createExecution( - '65e2126d9e431eb3c473', + 'user-endpoints', '', false, `/user/following?userId=${user.$id}&limit=250`, // You can specify a static limit here if desired diff --git a/src/utils/actions/account/account.ts b/src/utils/actions/account/account.ts index 40924a89..cbd09e9a 100644 --- a/src/utils/actions/account/account.ts +++ b/src/utils/actions/account/account.ts @@ -68,7 +68,7 @@ export async function deleteAccount() { try { const { account, functions } = await createSessionServerClient() await functions.createExecution( - '65e2126d9e431eb3c473', + 'user-endpoints', '', true, '/deleteAccount', diff --git a/src/utils/server-api/followers/getFollowers.ts b/src/utils/server-api/followers/getFollowers.ts index 10f63773..c1500d4f 100644 --- a/src/utils/server-api/followers/getFollowers.ts +++ b/src/utils/server-api/followers/getFollowers.ts @@ -14,7 +14,7 @@ export async function getFollowers( ): Promise { const { functions } = await createSessionServerClient() const data = await functions.createExecution( - '65e2126d9e431eb3c473', + 'user-endpoints', '', false, `/user/followers?userId=${userId}&limit=${limit}&offset=${offset}`, diff --git a/src/utils/server-api/followers/getFollowing.ts b/src/utils/server-api/followers/getFollowing.ts index 849774fe..57607892 100644 --- a/src/utils/server-api/followers/getFollowing.ts +++ b/src/utils/server-api/followers/getFollowing.ts @@ -15,7 +15,7 @@ export async function getFollowing( ): Promise { const { functions } = await createSessionServerClient() const data = await functions.createExecution( - '65e2126d9e431eb3c473', + 'user-endpoints', '', false, `/user/following?userId=${userId}&limit=${limit}&offset=${offset}`,