Clean out old unused functions, Device updates for replacing DeviceInfo

This commit is contained in:
advplyr 2024-09-12 16:36:39 -05:00
parent 3d9af89e24
commit 01fbea02f1
7 changed files with 142 additions and 158 deletions

View file

@ -82,8 +82,8 @@ class PlaybackSession {
/**
* Session data to send to clients
* @param {[oldLibraryItem]} libraryItem optional
* @returns {object}
* @param {Object} [libraryItem] - old library item
* @returns
*/
toJSONForClient(libraryItem) {
return {
@ -255,11 +255,5 @@ class PlaybackSession {
this.timeListening += Number.parseFloat(timeListened)
this.updatedAt = Date.now()
}
// New date since start of listening session
checkDateRollover() {
if (!this.date) return false
return date.format(new Date(), 'YYYY-MM-DD') !== this.date
}
}
module.exports = PlaybackSession