mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-08 11:42:44 +02:00
Update model casing & associations
This commit is contained in:
@@ -12,12 +12,12 @@ module.exports = (sequelize) => {
|
||||
path: DataTypes.STRING
|
||||
}, {
|
||||
sequelize,
|
||||
modelName: 'LibraryFolder'
|
||||
modelName: 'libraryFolder'
|
||||
})
|
||||
|
||||
const { Library } = sequelize.models
|
||||
Library.hasMany(LibraryFolder)
|
||||
LibraryFolder.belongsTo(Library)
|
||||
const { library } = sequelize.models
|
||||
library.hasMany(LibraryFolder)
|
||||
LibraryFolder.belongsTo(library)
|
||||
|
||||
return LibraryFolder
|
||||
}
|
||||
Reference in New Issue
Block a user