fix: disable fetch caching for follower count requests and update docker logs command

This commit is contained in:
2026-07-02 18:31:10 +07:00 Unverified
parent 83834b7fc9
commit f458486583
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export async function getDiscordMemberCount(): Promise<number | null> {
`https://discord.com/api/v10/guilds/${encodeURIComponent(guildId)}?with_counts=true`,
{
headers: { Authorization: `Bot ${token}` },
next: { revalidate: 3600 },
cache: "no-store",
signal: AbortSignal.timeout(5000),
}
);
+1 -1
View File
@@ -5,7 +5,7 @@ export async function getRobloxFollowerCount(): Promise<number | null> {
try {
const res = await fetch(
`https://friends.roblox.com/v1/users/${encodeURIComponent(userId)}/friends/count`,
{ next: { revalidate: 3600 }, signal: AbortSignal.timeout(5000) }
{ cache: "no-store", signal: AbortSignal.timeout(5000) }
);
if (!res.ok) return null;
+1 -1
View File
@@ -73,7 +73,7 @@ export async function getTiktokProfile(): Promise<TiktokProfile> {
"https://open.tiktokapis.com/v2/user/info/?fields=follower_count,display_name,username,avatar_url",
{
headers: { Authorization: `Bearer ${accessToken}` },
next: { revalidate: 3600 },
cache: "no-store",
signal: AbortSignal.timeout(5000),
}
);
+1 -1
View File
@@ -6,7 +6,7 @@ export async function getYoutubeSubscriberCount(): Promise<number | null> {
try {
const res = await fetch(
`https://www.googleapis.com/youtube/v3/channels?part=statistics&id=${encodeURIComponent(channelId)}&key=${encodeURIComponent(apiKey)}`,
{ next: { revalidate: 3600 }, signal: AbortSignal.timeout(5000) }
{ cache: "no-store", signal: AbortSignal.timeout(5000) }
);
if (!res.ok) return null;