From 452beba83d53bd137263191ebbf765440307a40a Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 5 Feb 2015 11:18:06 -0800 Subject: [PATCH] Update user.go fix migration database issue using zeroisnull --- shared/model/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/model/user.go b/shared/model/user.go index 2b7b5ad15..7f7f9a653 100644 --- a/shared/model/user.go +++ b/shared/model/user.go @@ -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 {