Skip to content

Commit a7d75c0

Browse files
committed
Update listening_session.updated_at when updating a session
1 parent 0a4bfd7 commit a7d75c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

listeningSession/listeningSession.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ func UpdateSessionIfNecessary(session model.FullListeningSession) *SpotifeteErro
345345
if err != nil {
346346
return NewInternalError("could not update session", err)
347347
}
348+
349+
session.UpdatedAt = time.Now()
350+
database.GetConnection().Save(session.SimpleListeningSession)
348351
}
349352

350353
return updatePlaylistIfNecessary(session, queue)

0 commit comments

Comments
 (0)