mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 08:51:16 -05:00
Fix: Handle internal errors
This commit is contained in:
@@ -344,7 +344,12 @@ class NotificationService {
|
||||
throw error;
|
||||
}
|
||||
|
||||
return data || [];
|
||||
return (data || []).map(t => ({
|
||||
...t,
|
||||
is_active: t.is_active ?? true,
|
||||
description: t.description || undefined,
|
||||
novu_workflow_id: t.novu_workflow_id || undefined
|
||||
}));
|
||||
} catch (error: unknown) {
|
||||
logger.error('Error fetching notification templates', {
|
||||
action: 'fetch_notification_templates',
|
||||
|
||||
Reference in New Issue
Block a user