From fea3c1770005b793056eacd4e9790bd60c7ac68b Mon Sep 17 00:00:00 2001 From: silverpill Date: Sun, 10 Oct 2021 00:46:23 +0000 Subject: [PATCH] Fix missing object_id in received Note --- src/models/posts/queries.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/models/posts/queries.rs b/src/models/posts/queries.rs index d5507b8..379dcd4 100644 --- a/src/models/posts/queries.rs +++ b/src/models/posts/queries.rs @@ -88,9 +88,10 @@ pub async fn create_post( INSERT INTO post ( id, author_id, content, in_reply_to_id, + object_id, created_at ) - VALUES ($1, $2, $3, $4, $5) + VALUES ($1, $2, $3, $4, $5, $6) RETURNING post ", &[ @@ -98,6 +99,7 @@ pub async fn create_post( &author_id, &data.content, &data.in_reply_to_id, + &data.object_id, &created_at, ], ).await?;