mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-23 20:34:40 +02:00
Init sqlite take 2
This commit is contained in:
parent
d86a3b3dc2
commit
cf7fd315b6
88 changed files with 7017 additions and 692 deletions
|
@ -1,6 +1,6 @@
|
|||
const uuidv4 = require("uuid").v4
|
||||
const Folder = require('./Folder')
|
||||
const LibrarySettings = require('./settings/LibrarySettings')
|
||||
const { getId } = require('../utils/index')
|
||||
const { filePathToPOSIX } = require('../utils/fileUtils')
|
||||
|
||||
class Library {
|
||||
|
@ -87,7 +87,7 @@ class Library {
|
|||
}
|
||||
|
||||
setData(data) {
|
||||
this.id = data.id ? data.id : getId('lib')
|
||||
this.id = data.id || uuidv4()
|
||||
this.name = data.name
|
||||
if (data.folder) {
|
||||
this.folders = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue