mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-29 20:02:42 +01:00
Clean out old unused functions, Device updates for replacing DeviceInfo
This commit is contained in:
1 parent
3d9af89e24
commit
01fbea02f1
7 files changed
+142
-158
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user