Merge branch 'advplyr:master' into patch-1

This commit is contained in:
Balki authored and GitHub committed 2025-03-28 04:55:20 +00:00
commit dc3c978f8d
195 files changed
+2164 -1545

No files matched your search

@@ -601,7 +601,7 @@ module.exports = {
}
const findAndCountAll = process.env.QUERY_PROFILING ? profile(this.findAndCountAll) : this.findAndCountAll
const { rows: books, count } = await findAndCountAll(findOptions, limit, offset, !filterGroup)
const { rows: books, count } = await findAndCountAll(findOptions, limit, offset, !filterGroup && !userPermissionBookWhere.bookWhere.length)
const libraryItems = books.map((bookExpanded) => {
const libraryItem = bookExpanded.libraryItem
@@ -204,7 +204,7 @@ module.exports = {
const findAndCountAll = process.env.QUERY_PROFILING ? profile(this.findAndCountAll) : this.findAndCountAll
const { rows: podcasts, count } = await findAndCountAll(findOptions, Database.podcastModel, limit, offset, !filterGroup)
const { rows: podcasts, count } = await findAndCountAll(findOptions, Database.podcastModel, limit, offset, !filterGroup && !userPermissionPodcastWhere.podcastWhere.length)
const libraryItems = podcasts.map((podcastExpanded) => {
const libraryItem = podcastExpanded.libraryItem