Skip to content

Commit 945ec81

Browse files
authored
Remove category filter (#551)
1 parent ff7ac8a commit 945ec81

File tree

1 file changed

+0
-12
lines changed
  • server/src/main/kotlin/suwayomi/tachidesk/graphql/queries

1 file changed

+0
-12
lines changed

server/src/main/kotlin/suwayomi/tachidesk/graphql/queries/MangaQuery.kt

-12
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import suwayomi.tachidesk.graphql.server.primitives.lessNotUnique
3838
import suwayomi.tachidesk.graphql.server.primitives.maybeSwap
3939
import suwayomi.tachidesk.graphql.types.MangaNodeList
4040
import suwayomi.tachidesk.graphql.types.MangaType
41-
import suwayomi.tachidesk.manga.model.table.CategoryMangaTable
4241
import suwayomi.tachidesk.manga.model.table.MangaStatus
4342
import suwayomi.tachidesk.manga.model.table.MangaTable
4443
import java.util.concurrent.CompletableFuture
@@ -172,7 +171,6 @@ class MangaQuery {
172171
val realUrl: StringFilter? = null,
173172
val lastFetchedAt: LongFilter? = null,
174173
val chaptersLastFetchedAt: LongFilter? = null,
175-
val category: IntFilter? = null,
176174
override val and: List<MangaFilter>? = null,
177175
override val or: List<MangaFilter>? = null,
178176
override val not: MangaFilter? = null
@@ -196,8 +194,6 @@ class MangaQuery {
196194
andFilterWithCompare(MangaTable.inLibraryAt, chaptersLastFetchedAt)
197195
)
198196
}
199-
200-
fun getCategoryOp() = andFilterWithCompareEntity(CategoryMangaTable.category, category)
201197
}
202198

203199
fun mangas(
@@ -214,14 +210,6 @@ class MangaQuery {
214210
val queryResults = transaction {
215211
val res = MangaTable.selectAll()
216212

217-
val categoryOp = filter?.getCategoryOp()
218-
if (categoryOp != null) {
219-
res.adjustColumnSet {
220-
innerJoin(CategoryMangaTable)
221-
}
222-
res.andWhere { categoryOp }
223-
}
224-
225213
res.applyOps(condition, filter)
226214

227215
if (orderBy != null || (last != null || before != null)) {

0 commit comments

Comments
 (0)