# HG changeset patch # User Peter Sanchez # Date 1686093371 21600 # Tue Jun 06 17:16:11 2023 -0600 # Node ID e72c14ed2457837cc8eabb55cb0c9d3383d55c14 # Parent 2b38ff6c9f64f9fb30d5f2406e6373313325feab Fixing bug where updated/creation date is set to zero at creation diff --git a/email_notifications.go b/email_notifications.go --- a/email_notifications.go +++ b/email_notifications.go @@ -64,8 +64,8 @@ if n.ID == 0 { err = sq. Insert("email_notifications"). - Columns("email", "count", "notifications", "created_on", "updated_on"). - Values(n.Email, n.Count, n.Notifications, n.CreatedOn, n.UpdatedOn). + Columns("email", "count", "notifications"). + Values(n.Email, n.Count, n.Notifications). Suffix(`RETURNING id, created_on, updated_on`). PlaceholderFormat(sq.Dollar). RunWith(tx).