From f60362ee654697533e741631de568ffeb9ce577f Mon Sep 17 00:00:00 2001 From: swag Date: Sun, 2 Oct 2022 00:13:19 -0400 Subject: [PATCH] Lil cleanup --- lib/PostText/Controller/Remark.pm | 2 +- lib/PostText/Model/Thread.pm | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/PostText/Controller/Remark.pm b/lib/PostText/Controller/Remark.pm index 65da5df..d06293e 100644 --- a/lib/PostText/Controller/Remark.pm +++ b/lib/PostText/Controller/Remark.pm @@ -52,7 +52,7 @@ sub create($self) { $self->stash( thread => $thread, last_remark => $last_remark - ); + ); return $self->render; } diff --git a/lib/PostText/Model/Thread.pm b/lib/PostText/Model/Thread.pm index 248ac3d..21eb24c 100644 --- a/lib/PostText/Model/Thread.pm +++ b/lib/PostText/Model/Thread.pm @@ -17,12 +17,12 @@ sub create($self, $author, $title, $body, $hidden = 0, $flagged = 0) { $self->pg->db->query(<<~'END_SQL', @data)->hash->{'thread_id'}; INSERT INTO threads ( - thread_author, - thread_title, - thread_body, - hidden_status, - flagged_status - ) + thread_author, + thread_title, + thread_body, + hidden_status, + flagged_status + ) VALUES (?, ?, ?, ?, ?) RETURNING thread_id; END_SQL