Chore: Add user service method UpdateLastSeenAt (#53309)

* Chore: Add user service method UpdateLastSeenAt

* Fix lint
This commit is contained in:
idafurjes
2022-08-04 15:44:14 +02:00
committed by GitHub
parent 20f4191e56
commit 0c5b71694f
10 changed files with 30 additions and 13 deletions

View File

@@ -82,6 +82,10 @@ type ChangeUserPasswordCommand struct {
UserID int64 `json:"-"`
}
type UpdateUserLastSeenAtCommand struct {
UserID int64
}
func (u *User) NameOrFallback() string {
if u.Name != "" {
return u.Name