Sfoglia il codice sorgente

Use pointers for Date* fields

Andrea Fazzi 6 anni fa
parent
commit
b60e331b72
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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"`