Skip to content

Commit 293b35d

Browse files
refactor: remove unused tagCount parameter from queries (#307)
1 parent 27cd124 commit 293b35d

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

app/src/main/java/com/yogeshpaliyal/deepr/server/LocalServerRepositoryImpl.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ open class LocalServerRepositoryImpl(
154154
-1L,
155155
"",
156156
"",
157-
0L,
158157
"DESC",
159158
"createdAt",
160159
"DESC",
@@ -228,7 +227,6 @@ open class LocalServerRepositoryImpl(
228227
-1L,
229228
tag.id.toString(),
230229
tag.id.toString(),
231-
1L,
232230
"DESC",
233231
"createdAt",
234232
"DESC",

app/src/main/java/com/yogeshpaliyal/deepr/viewmodel/AccountViewModel.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ class AccountViewModel(
310310
favourite.toLong(),
311311
tagIdsString,
312312
tagIdsString,
313-
tagCount,
314313
sortType,
315314
sortField,
316315
sortType,

app/src/main/sqldelight/com/yogeshpaliyal/deepr/Deepr.sq

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ WHERE
7676
FROM LinkTags lt
7777
WHERE lt.linkId = Deepr.id
7878
AND (',' || ? || ',' LIKE '%,' || CAST(lt.tagId AS TEXT) || ',%')
79-
) = ?
79+
) > 0
8080
)
8181
GROUP BY
8282
Deepr.id

0 commit comments

Comments
 (0)