mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-04 02:22:09 +01:00
Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule
This commit is contained in:
@@ -89,9 +89,13 @@ module.exports = (sequelize) => {
|
||||
})
|
||||
}
|
||||
|
||||
static async createRootUser(username, pash, token) {
|
||||
static async createRootUser(username, pash, auth) {
|
||||
const userId = uuidv4()
|
||||
|
||||
const token = await auth.generateAccessToken({ userId, username })
|
||||
|
||||
const newRoot = new oldUser({
|
||||
id: uuidv4(),
|
||||
id: userId,
|
||||
type: 'root',
|
||||
username,
|
||||
pash,
|
||||
|
||||
Reference in New Issue
Block a user