contacts: edit form zeros created_at and updated_at on save #77
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_archipelagos#77
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
contact_form.rs:87-88hardcodescreated_at: 0, updated_at: 0when building the Contact to save.On edit, this wipes the real creation date every time.
Fix: preserve
contact.created_at/contact.updated_atfrom props when editing; leave 0 on create so the server-side trigger can stamp them.