mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-15 01:32:24 +02:00
Init sqlite take 2
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
const { getId } = require('../../utils/index')
|
||||
const uuidv4 = require("uuid").v4
|
||||
|
||||
class Series {
|
||||
constructor(series) {
|
||||
@ -40,7 +40,7 @@ class Series {
|
||||
}
|
||||
|
||||
setData(data) {
|
||||
this.id = getId('ser')
|
||||
this.id = uuidv4()
|
||||
this.name = data.name
|
||||
this.description = data.description || null
|
||||
this.addedAt = Date.now()
|
||||
|
Reference in New Issue
Block a user