fix(analytics): Improve error handling and partial extraction

This commit is contained in:
Michael committed 2026-01-20 14:35:45 +01:00
1 parent f8db96084b
commit 8c911f0fb1
2 files changed
+47 -27

No files matched your search

+3 -2
View File
@@ -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' });
}
});