mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-16 12:24:56 +02:00
Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule
This commit is contained in:
parent
254ba1f089
commit
f73a0cce72
20 changed files with 67 additions and 31 deletions
|
@ -1,4 +1,5 @@
|
|||
const nodemailer = require('nodemailer')
|
||||
const Database = require('../Database')
|
||||
const Logger = require("../Logger")
|
||||
|
||||
class EmailManager {
|
||||
|
|
|
@ -52,6 +52,7 @@ class PlaybackSessionManager {
|
|||
}
|
||||
}
|
||||
|
||||
await Database.createDevice(deviceInfo)
|
||||
|
||||
return deviceInfo
|
||||
}
|
||||
|
@ -221,9 +222,6 @@ class PlaybackSessionManager {
|
|||
newPlaybackSession.audioTracks = audioTracks
|
||||
}
|
||||
|
||||
// Will save on the first sync
|
||||
user.currentSessionId = newPlaybackSession.id
|
||||
|
||||
this.sessions.push(newPlaybackSession)
|
||||
SocketAuthority.adminEmitter('user_stream_update', user.toJSONForPublic(this.sessions, Database.libraryItems))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue