contacts: edit form zeros created_at and updated_at on save #77

Closed
opened 2026-04-20 08:01:03 +00:00 by zaelgohary · 0 comments
Member

contact_form.rs:87-88 hardcodes created_at: 0, updated_at: 0 when building the Contact to save.

On edit, this wipes the real creation date every time.

Fix: preserve contact.created_at / contact.updated_at from props when editing; leave 0 on create so the server-side trigger can stamp them.

`contact_form.rs:87-88` hardcodes `created_at: 0, updated_at: 0` when building the Contact to save. On edit, this wipes the real creation date every time. Fix: preserve `contact.created_at` / `contact.updated_at` from props when editing; leave 0 on create so the server-side trigger can stamp them.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_archipelagos#77
No description provided.