This commit is contained in:
Dyson 2026-05-06 13:51:20 +02:00 committed by GitHub
commit 661e23c6bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 109 additions and 0 deletions

View file

@ -106,6 +106,15 @@ module.exports = {
}
}
// Don't return hidden series
if (user.extraData.hiddenSeries) {
seriesWhere.push({
id: {
[Sequelize.Op.notIn]: user.extraData.hiddenSeries
}
})
}
if (attrQuery) {
seriesWhere.push(
Sequelize.where(Sequelize.literal(`(${attrQuery})`), {