From 3dce85c1d2aa0a3a1c8be2344eeea1d2d0c93ecb Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Tue, 6 Jun 2023 17:16:11 -0600 Subject: [PATCH] Fixing bug where updated/creation date is set to zero at creation --- email_notifications.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/email_notifications.go b/email_notifications.go index f0b0a58..c203c97 100644 --- a/email_notifications.go +++ b/email_notifications.go @@ -64,8 +64,8 @@ func (n *EmailNotification) Store(ctx context.Context) error { 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). -- 2.45.2