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

This commit is contained in:
advplyr committed 2023-07-09 11:39:15 -05:00
1 parent 254ba1f089
commit f73a0cce72
20 files changed
+67 -31

No files matched your search

+6 -2
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,