aboutsummaryrefslogtreecommitdiff
path: root/src/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/database')
-rw-r--r--src/database/postgres.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/postgres.ts b/src/database/postgres.ts
index 677a106..9ea65dc 100644
--- a/src/database/postgres.ts
+++ b/src/database/postgres.ts
@@ -132,7 +132,7 @@ with thread_comments as (
) as comment
from ${board}.comment c
)
-select t.*, COALESCE(c.comment, '[]'::jsonb) as comment
+select t.*, COALESCE(c.comment, '[]'::jsonb) as comments
from ${board}.thread t
left join thread_comments c on (c.tid = t.id)
where t.id = ${tid};`;