mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 10:31:13 -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)
|
||||
.single();
|
||||
|
||||
await supabase.from('notification_logs').insert({
|
||||
const { error: logError } = await supabase.from('notification_logs').insert({
|
||||
user_id: log.userId,
|
||||
template_id: template?.id,
|
||||
novu_transaction_id: log.transactionId,
|
||||
@@ -266,6 +266,10 @@ class NotificationService {
|
||||
status: 'sent',
|
||||
payload: log.payload,
|
||||
});
|
||||
|
||||
if (logError) {
|
||||
console.error('Error inserting notification log:', logError);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error logging notification:', error);
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import { componentTagger } from "lovable-tagger";
|
||||
export default defineConfig(({ mode }) => ({
|
||||
server: {
|
||||
host: "::",
|
||||
port: 8080,
|
||||
port: 5000,
|
||||
},
|
||||
plugins: [react(), mode === "development" && componentTagger()].filter(Boolean),
|
||||
resolve: {
|
||||
|
||||
Reference in New Issue
Block a user