mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-23 23:18:12 +02:00
fix(analytics): Improve error handling and partial extraction
This commit is contained in:
1 parent
f8db96084b
commit
8c911f0fb1
2 files changed
+47
-27
No files matched your search
@@ -59,8 +59,9 @@ router.post('/pages/:pageId/refresh', async (req, res) => {
|
||||
where: eq(socialPages.id, pageId)
|
||||
});
|
||||
res.json(page);
|
||||
} catch (error) {
|
||||
res.status(500).json({ error: 'Failed to refresh page analytics' });
|
||||
} catch (error: any) {
|
||||
console.error('Refresh error:', error);
|
||||
res.status(500).json({ error: error.message || 'Failed to refresh page analytics' });
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user