mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-04 12:02:01 +02:00
Update library API endpoints to load library items from db
This commit is contained in:
+18
-1
@@ -75,7 +75,24 @@ module.exports = (sequelize) => {
|
||||
imagePath: DataTypes.STRING
|
||||
}, {
|
||||
sequelize,
|
||||
modelName: 'author'
|
||||
modelName: 'author',
|
||||
indexes: [
|
||||
{
|
||||
fields: [{
|
||||
name: 'name',
|
||||
collate: 'NOCASE'
|
||||
}]
|
||||
},
|
||||
{
|
||||
fields: [{
|
||||
name: 'lastFirst',
|
||||
collate: 'NOCASE'
|
||||
}]
|
||||
},
|
||||
{
|
||||
fields: ['libraryId']
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
const { library } = sequelize.models
|
||||
|
||||
Reference in New Issue
Block a user