A full-featured CRM built with React, shadcn/ui, and Supabase.
Fix(contactNotes): Use now() instead of note date in trigger
Jonathan ARNAULT0ea267344473
diff --git a/supabase/migrations/20240809135136_trigger_contact_note.sql b/supabase/migrations/20240809135136_trigger_contact_note.sqlindex 8ff4505e..340ea6ce 100644--- a/supabase/migrations/20240809135136_trigger_contact_note.sql+++ b/supabase/migrations/20240809135136_trigger_contact_note.sql@@ -6,7 +6,7 @@ as $$beginupdate public."contacts"set- last_seen = new.date+ last_seen = NOW()where id = new.contact_id;return new;