Don't use transaction for updating last seen for an user. (#88426)

dont use transaction for updating last seen

Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
Carl Bergquist 2024-05-29 17:13:04 +02:00 committed by GitHub
parent 289ce61855
commit 0e6464fc96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -290,7 +290,7 @@ func (ss *sqlStore) UpdateLastSeenAt(ctx context.Context, cmd *user.UpdateUserLa
if cmd.UserID <= 0 {
return user.ErrUpdateInvalidID
}
return ss.db.WithTransactionalDbSession(ctx, func(sess *db.Session) error {
return ss.db.WithDbSession(ctx, func(sess *db.Session) error {
user := user.User{
ID: cmd.UserID,
LastSeenAt: time.Now(),