Update user.go
fix migration database issue using zeroisnull
This commit is contained in:
parent
64aeeff3ae
commit
452beba83d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ type User struct {
|
|||
Created int64 `meddler:"user_created" json:"created_at"`
|
||||
Updated int64 `meddler:"user_updated" json:"updated_at"`
|
||||
Synced int64 `meddler:"user_synced" json:"synced_at"`
|
||||
TokenExpiry int64 `meddler:"user_access_expires" json:"-"`
|
||||
TokenExpiry int64 `meddler:"user_access_expires,zeroisnull" json:"-"`
|
||||
}
|
||||
|
||||
func NewUser(remote, login, email string) *User {
|
||||
|
|
Loading…
Reference in a new issue