fix(analytics): handle expired tokens gracefully to prevent 500 errors

This commit is contained in:
Michael committed 2026-01-21 16:03:30 +01:00
1 parent 1f76a72100
commit ad22aea55e
1 file changed
+3
+3
View File
@@ -178,6 +178,9 @@ export class AnalyticsService {
lastTokenCheck: new Date()
})
.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}`);