Init sqlite take 2

This commit is contained in:
advplyr 2023-07-04 18:14:44 -05:00
parent d86a3b3dc2
commit cf7fd315b6
88 changed files with 7017 additions and 692 deletions

View file

@ -1,4 +1,4 @@
const { getId } = require("../utils")
const uuidv4 = require("uuid").v4
class Folder {
constructor(folder = null) {
@ -29,7 +29,7 @@ class Folder {
}
setData(data) {
this.id = data.id ? data.id : getId('fol')
this.id = data.id || uuidv4()
this.fullPath = data.fullPath
this.libraryId = data.libraryId
this.addedAt = Date.now()