Silly regex almost caused bug in payments in prod 😳

main
Cameron Murphy Reikes 2 years ago
parent 6bfe5d73ae
commit 9263b088a6

@ -38,7 +38,7 @@ const (
type User struct { type User struct {
CreatedAt time.Time CreatedAt time.Time
UpdatedAt 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 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 BoughtTime int64 // unix time. Used to figure out if the pass is still valid

Loading…
Cancel
Save