mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
Update user.go
fix migration database issue using zeroisnull
This commit is contained in:
parent
64aeeff3ae
commit
452beba83d
@ -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 New Issue
Block a user