Skip to content

Commit

Permalink
Fix(contactNote): Update contact last seen to now
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanarnault committed Aug 12, 2024
1 parent 0ea2673 commit 895e67d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
3 changes: 1 addition & 2 deletions src/notes/NoteCreate.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import * as React from 'react';
import {
CreateBase,
Form,
Expand Down Expand Up @@ -82,7 +81,7 @@ const NoteCreateButton = ({
refetch();
update(reference, {
id: (record && record.id) as unknown as Identifier,
data: { last_seen: data.date, status: data.status },
data: { last_seen: new Date().toISOString(), status: data.status },
previousData: record,
});
notify('Note added');
Expand Down
19 changes: 0 additions & 19 deletions supabase/migrations/20240809135136_trigger_contact_note.sql

This file was deleted.

0 comments on commit 895e67d

Please sign in to comment.