Lil cleanup
This commit is contained in:
parent
7951c40fa4
commit
f60362ee65
|
@ -52,7 +52,7 @@ sub create($self) {
|
|||
$self->stash(
|
||||
thread => $thread,
|
||||
last_remark => $last_remark
|
||||
);
|
||||
);
|
||||
|
||||
return $self->render;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user