mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 17:31:12 -05:00
Improve logging and update development server port
Add error handling for notification log insertion and change Vite dev server port from 8080 to 5000. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 853a87ae-e13d-4762-9a69-fbd3990ed527 Replit-Commit-Checkpoint-Type: intermediate_checkpoint
This commit is contained in:
@@ -258,7 +258,7 @@ class NotificationService {
|
|||||||
.eq('workflow_id', log.workflowId)
|
.eq('workflow_id', log.workflowId)
|
||||||
.single();
|
.single();
|
||||||
|
|
||||||
await supabase.from('notification_logs').insert({
|
const { error: logError } = await supabase.from('notification_logs').insert({
|
||||||
user_id: log.userId,
|
user_id: log.userId,
|
||||||
template_id: template?.id,
|
template_id: template?.id,
|
||||||
novu_transaction_id: log.transactionId,
|
novu_transaction_id: log.transactionId,
|
||||||
@@ -266,6 +266,10 @@ class NotificationService {
|
|||||||
status: 'sent',
|
status: 'sent',
|
||||||
payload: log.payload,
|
payload: log.payload,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (logError) {
|
||||||
|
console.error('Error inserting notification log:', logError);
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error logging notification:', error);
|
console.error('Error logging notification:', error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { componentTagger } from "lovable-tagger";
|
|||||||
export default defineConfig(({ mode }) => ({
|
export default defineConfig(({ mode }) => ({
|
||||||
server: {
|
server: {
|
||||||
host: "::",
|
host: "::",
|
||||||
port: 8080,
|
port: 5000,
|
||||||
},
|
},
|
||||||
plugins: [react(), mode === "development" && componentTagger()].filter(Boolean),
|
plugins: [react(), mode === "development" && componentTagger()].filter(Boolean),
|
||||||
resolve: {
|
resolve: {
|
||||||
|
|||||||
Reference in New Issue
Block a user