From 9263b088a61d1e40c4fa030cee89516fddaf9816 Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Sat, 1 Apr 2023 14:53:31 -0700 Subject: [PATCH] =?UTF-8?q?Silly=20regex=20almost=20caused=20bug=20in=20pa?= =?UTF-8?q?yments=20in=20prod=20=F0=9F=98=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.go b/server/main.go index cbf7d6b..96fa4ed 100644 --- a/server/main.go +++ b/server/main.go @@ -38,7 +38,7 @@ const ( type User struct { CreatedAt time.Time UpdatedAt time.Time - DeletedAt gorm.DeletedAt `gorm:"completion"` + DeletedAt gorm.DeletedAt `gorm:"index"` Code codes.UserCode `gorm:"primaryKey"` // of maximum value max codes, incremented one by one. These are converted to 4 digit alphanumeric code users can remember/use BoughtTime int64 // unix time. Used to figure out if the pass is still valid