mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-06 12:55:23 +02:00
Remove unused functions, jsdoc updates, auto-formatting
This commit is contained in:
@@ -26,19 +26,22 @@ class CollectionBook extends Model {
|
||||
}
|
||||
|
||||
static init(sequelize) {
|
||||
super.init({
|
||||
id: {
|
||||
type: DataTypes.UUID,
|
||||
defaultValue: DataTypes.UUIDV4,
|
||||
primaryKey: true
|
||||
super.init(
|
||||
{
|
||||
id: {
|
||||
type: DataTypes.UUID,
|
||||
defaultValue: DataTypes.UUIDV4,
|
||||
primaryKey: true
|
||||
},
|
||||
order: DataTypes.INTEGER
|
||||
},
|
||||
order: DataTypes.INTEGER
|
||||
}, {
|
||||
sequelize,
|
||||
timestamps: true,
|
||||
updatedAt: false,
|
||||
modelName: 'collectionBook'
|
||||
})
|
||||
{
|
||||
sequelize,
|
||||
timestamps: true,
|
||||
updatedAt: false,
|
||||
modelName: 'collectionBook'
|
||||
}
|
||||
)
|
||||
|
||||
// Super Many-to-Many
|
||||
// ref: https://sequelize.org/docs/v6/advanced-association-concepts/advanced-many-to-many/#the-best-of-both-worlds-the-super-many-to-many-relationship
|
||||
@@ -58,4 +61,4 @@ class CollectionBook extends Model {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CollectionBook
|
||||
module.exports = CollectionBook
|
||||
|
||||
Reference in New Issue
Block a user