summaryrefslogtreecommitdiffstats
path: root/server/src/db/comment.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/db/comment.rs')
-rw-r--r--server/src/db/comment.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/db/comment.rs b/server/src/db/comment.rs
index ce0b5a63..7901357f 100644
--- a/server/src/db/comment.rs
+++ b/server/src/db/comment.rs
@@ -103,9 +103,10 @@ impl Likeable <CommentLikeForm> for CommentLike {
}
fn remove(conn: &PgConnection, comment_like_form: &CommentLikeForm) -> Result<usize, Error> {
use crate::schema::comment_like::dsl::*;
- diesel::delete(comment_like
- .filter(comment_id.eq(comment_like_form.comment_id))
- .filter(user_id.eq(comment_like_form.user_id)))
+ diesel::delete(
+ comment_like
+ .filter(comment_id.eq(comment_like_form.comment_id))
+ .filter(user_id.eq(comment_like_form.user_id)))
.execute(conn)
}
}