Lil cleanup
This commit is contained in:
parent
7951c40fa4
commit
f60362ee65
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user