Skip to content

Commit d78e18c

Browse files
committed
simplify parentPostUri selection in postThread query
1 parent f0c2f99 commit d78e18c

File tree

1 file changed

+1
-1
lines changed
  • data/database/src/commonMain/kotlin/com/tunjid/heron/data/database/daos

1 file changed

+1
-1
lines changed

data/database/src/commonMain/kotlin/com/tunjid/heron/data/database/daos/PostDao.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ interface PostDao {
397397
ft.generation AS generation,
398398
ft.ancestorCreated AS ancestorCreated,
399399
ft.postCreated AS postCreated,
400-
CASE WHEN ft.generation = 0 THEN NULL ELSE pt.parentPostUri END AS parentPostUri
400+
pt.parentPostUri AS parentPostUri
401401
FROM
402402
posts p
403403
JOIN

0 commit comments

Comments
 (0)