GraphQL: Add missing fields (#20646)
Went through the model and added all missing fields. Except user.Password/MfaSecret/AuthData and session.TeamMembers. ```release-note NONE ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2aaf4cf0fb
Коммит
ae482e6214
@@ -477,10 +477,34 @@ func (u *User) DeleteAt_() float64 {
|
||||
return float64(u.DeleteAt)
|
||||
}
|
||||
|
||||
func (u *User) LastPictureUpdateAt() float64 {
|
||||
func (u *User) UpdateAt_() float64 {
|
||||
return float64(u.UpdateAt)
|
||||
}
|
||||
|
||||
func (u *User) LastPictureUpdate_() float64 {
|
||||
return float64(u.LastPictureUpdate)
|
||||
}
|
||||
|
||||
func (u *User) LastPasswordUpdate_() float64 {
|
||||
return float64(u.LastPasswordUpdate)
|
||||
}
|
||||
|
||||
func (u *User) FailedAttempts_() float64 {
|
||||
return float64(u.FailedAttempts)
|
||||
}
|
||||
|
||||
func (u *User) LastActivityAt_() float64 {
|
||||
return float64(u.LastActivityAt)
|
||||
}
|
||||
|
||||
func (u *User) BotLastIconUpdate_() float64 {
|
||||
return float64(u.BotLastIconUpdate)
|
||||
}
|
||||
|
||||
func (u *User) TermsOfServiceCreateAt_() float64 {
|
||||
return float64(u.TermsOfServiceCreateAt)
|
||||
}
|
||||
|
||||
// PreUpdate should be run before updating the user in the db.
|
||||
func (u *User) PreUpdate() {
|
||||
u.Username = SanitizeUnicode(u.Username)
|
||||
|
||||
Ссылка в новой задаче
Block a user