Update Dockerfile for sqlite3, update models for cascade delete, fix backup schedule

This commit is contained in:
advplyr 2023-07-09 11:39:15 -05:00
parent 254ba1f089
commit f73a0cce72
20 changed files with 67 additions and 31 deletions

View file

@ -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,