mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-09-10 17:58:02 +02:00
Removing dead code and outdated comment
This commit is contained in:
parent
db3916f904
commit
c8bc1cb150
@ -724,25 +724,11 @@ async function findLibraryItemByFileToItemInoMatch(libraryId, fullPath, isSingle
|
||||
/** @type {import('../models/LibraryItem').LibraryItemExpanded | null} */
|
||||
let existingLibraryItem = null
|
||||
for (let item in itemFileInos) {
|
||||
// TODO: BUGBUG - this query is broken. It's passing a whole object instead of just the ino. Change the query.
|
||||
|
||||
existingLibraryItem = await Database.libraryItemModel.findOneExpanded({
|
||||
libraryId: libraryId,
|
||||
[sequelize.Op.or]: itemFileInos
|
||||
})
|
||||
|
||||
/* existingLibraryItem = await Database.libraryItemModel.findOneExpanded([
|
||||
{
|
||||
libraryId: libraryId,
|
||||
[sequelize.Op.and]: {
|
||||
ino: itemFileInos.map((f) => f.ino),
|
||||
deviceId: itemFileInos.map((f) => f.deviceId)
|
||||
}
|
||||
}
|
||||
/* ino: {
|
||||
[sequelize.Op.in]: itemFileInos
|
||||
} */
|
||||
// ]) */
|
||||
if (existingLibraryItem) {
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user