Browse Source

Use pointers for Date* fields

Andrea Fazzi 6 years ago
parent
commit
b60e331b72
1 changed files with 2 additions and 2 deletions
  1. 2 2
      orm/credential.go

+ 2 - 2
orm/credential.go

@@ -19,8 +19,8 @@ type Credential struct {
 	PlainPassword   string
 	Email           string `csv:"email"`
 	AltEmail        string
-	DateFrom        time.Time
-	DateTo          time.Time
+	DateFrom        *time.Time
+	DateTo          *time.Time
 	TelephoneNumber string
 
 	Regenerate bool `schema:"Regenerate" sql:"default: false"`