mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-21 14:08:10 +02:00
fix(analytics): handle expired tokens gracefully to prevent 500 errors
This commit is contained in:
1 parent
1f76a72100
commit
ad22aea55e
1 file changed
+3
@@ -178,6 +178,9 @@ export class AnalyticsService {
|
|||||||
lastTokenCheck: new Date()
|
lastTokenCheck: new Date()
|
||||||
})
|
})
|
||||||
.where(eq(socialPages.id, pageId));
|
.where(eq(socialPages.id, pageId));
|
||||||
|
|
||||||
|
// Return gracefully so the UI sees the updated status
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Error(`Failed to fetch Basic Info: ${error.message || error}`);
|
throw new Error(`Failed to fetch Basic Info: ${error.message || error}`);
|
||||||
|
|||||||
Reference in new issue
Block a user