Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Fix handle_contact_note_created_or_updated

React-Admin CI5a37b4e8887e
diff --git a/supabase/migrations/20260129161921_contact_last_seen_from_notes.sql b/supabase/migrations/20260129161921_contact_last_seen_from_notes.sql
index b07f15e5..2c40800d 100644
--- a/supabase/migrations/20260129161921_contact_last_seen_from_notes.sql
+++ b/supabase/migrations/20260129161921_contact_last_seen_from_notes.sql
@@ -7,7 +7,7 @@ CREATE OR REPLACE FUNCTION public.handle_contact_note_created_or_updated()
SET search_path TO ''
AS $function$
begin
- update public.contacts set public.contacts.last_seen = new.date where public.contacts.id = new.contact_id;
+ update public.contacts set last_seen = new.date where contacts.id = new.contact_id;
return new;
end;
$function$