Lil cleanup

This commit is contained in:
swagg boi 2022-10-02 00:13:19 -04:00
parent 7951c40fa4
commit f60362ee65
2 changed files with 7 additions and 7 deletions

View file

@ -52,7 +52,7 @@ sub create($self) {
$self->stash( $self->stash(
thread => $thread, thread => $thread,
last_remark => $last_remark last_remark => $last_remark
); );
return $self->render; return $self->render;
} }

View file

@ -17,12 +17,12 @@ sub create($self, $author, $title, $body, $hidden = 0, $flagged = 0) {
$self->pg->db->query(<<~'END_SQL', @data)->hash->{'thread_id'}; $self->pg->db->query(<<~'END_SQL', @data)->hash->{'thread_id'};
INSERT INTO threads ( INSERT INTO threads (
thread_author, thread_author,
thread_title, thread_title,
thread_body, thread_body,
hidden_status, hidden_status,
flagged_status flagged_status
) )
VALUES (?, ?, ?, ?, ?) VALUES (?, ?, ?, ?, ?)
RETURNING thread_id; RETURNING thread_id;
END_SQL END_SQL