From 71d7ed8b7a65391ef2018aa55788366c1e20e678 Mon Sep 17 00:00:00 2001 From: dullbananas Date: Mon, 10 Jun 2024 12:41:57 -0700 Subject: [PATCH] Remove `unimplemented` in `::create` --- crates/db_schema/src/impls/comment.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/db_schema/src/impls/comment.rs b/crates/db_schema/src/impls/comment.rs index 6cdb54e4a..fdcc952a4 100644 --- a/crates/db_schema/src/impls/comment.rs +++ b/crates/db_schema/src/impls/comment.rs @@ -117,9 +117,8 @@ impl Crud for Comment { type UpdateForm = CommentUpdateForm; type IdType = CommentId; - /// This is unimplemented, use [[Comment::create]] - async fn create(_pool: &mut DbPool<'_>, _comment_form: &Self::InsertForm) -> Result { - unimplemented!(); + async fn create(pool: &mut DbPool<'_>, comment_form: &Self::InsertForm) -> Result { + Comment::create(pool, comment_form, None).await } async fn update(