mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-13 12:23:34 +01:00
Clean up invalid where objects in LibraryScanner
This commit is contained in:
1 parent
18e32410ad
commit
1e5443f054
1 file changed
+2
-8
@@ -515,10 +515,7 @@ class LibraryScanner {
|
||||
attributes: ['id', 'path'],
|
||||
where: {
|
||||
path: {
|
||||
[sequelize.Op.not]: fullPath
|
||||
},
|
||||
path: {
|
||||
[sequelize.Op.startsWith]: fullPath
|
||||
[sequelize.Op.startsWith]: fullPath + '/'
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -531,10 +528,7 @@ class LibraryScanner {
|
||||
attributes: ['id', 'path'],
|
||||
where: {
|
||||
path: {
|
||||
[sequelize.Op.not]: altFullPath
|
||||
},
|
||||
path: {
|
||||
[sequelize.Op.startsWith]: altFullPath
|
||||
[sequelize.Op.startsWith]: altFullPath + '/'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user