From 9248950255c15a2e788993f848083b1233a6a48f Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 14 May 2023 03:34:14 +0400 Subject: [PATCH] Return category's ID as well. --- pkg/mindflow/database/sqlite/queries/postGetAll.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/mindflow/database/sqlite/queries/postGetAll.sql b/pkg/mindflow/database/sqlite/queries/postGetAll.sql index 1f8b610..5616c2e 100644 --- a/pkg/mindflow/database/sqlite/queries/postGetAll.sql +++ b/pkg/mindflow/database/sqlite/queries/postGetAll.sql @@ -1,5 +1,6 @@ SELECT `post`.`post_id`, + `category`.`id` AS `category_id`, `category`.`name` AS `category`, `post`.`date`, `post`.`title`,