This commit is contained in:
swag 2021-12-22 21:03:51 -05:00
parent 46cfc59e07
commit 8ad6b5ec2f

View File

@ -24,7 +24,7 @@ sub get_posts($self) {
} }
sub create_post($self, $name, $message) { sub create_post($self, $name, $message) {
$self->pg-db->query(<<~'END_SQL', $name, $message) $self->pg->db->query(<<~'END_SQL', $name, $message)
INSERT INTO messages (message_date, visitor_name, message) INSERT INTO messages (message_date, visitor_name, message)
VALUES (NOW(), ?, ?); VALUES (NOW(), ?, ?);
END_SQL END_SQL