diff options
author | 2024-11-14 21:43:54 +0000 | |
---|---|---|
committer | 2024-11-14 21:43:54 +0000 | |
commit | 67b54449a1bbde257e9454419e7bb70ebc515c0f (patch) | |
tree | e23710c2d1f5d219205f26af727b478e455a0071 /src/comment.rs | |
parent | 469a3ad33914f7eff6edc9ca7fabb12f2950da84 (diff) | |
download | critch-67b54449a1bbde257e9454419e7bb70ebc515c0f.tar.gz critch-67b54449a1bbde257e9454419e7bb70ebc515c0f.tar.bz2 critch-67b54449a1bbde257e9454419e7bb70ebc515c0f.zip |
Diffstat (limited to 'src/comment.rs')
-rw-r--r-- | src/comment.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comment.rs b/src/comment.rs index 55c4607..6aa3ee8 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -6,7 +6,7 @@ use crate::Result; #[derive(sqlx::FromRow)] pub struct Comment { /// id of the comment in the thread - id: Option<i32>, + comment_id: Option<i32>, /// text of the comment pub text: String, /// id of artwork thread comment is in @@ -21,7 +21,7 @@ pub struct Comment { impl Comment { pub fn id(&self) -> Option<i32> { - self.id + self.comment_id } pub fn created_at(&self) -> Option<OffsetDateTime> { |