From 184fcd5cb5bacd11271028c1031a7bfef4db48a2 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 30 Apr 2024 20:56:54 +0500 Subject: upd: replaced work to connection --- src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 67cf3a5..f9be192 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -61,12 +61,10 @@ int main(int argc, char *argv[]) { bot::InstanceBundle bundle{client, localization}; pqxx::connection conn(GET_DATABASE_CONNECTION_URL(cfg)); - pqxx::work work(conn); bot::handlers::handle_private_message(bundle, command_loader, message, - work); + conn); - work.commit(); conn.close(); }); -- cgit v1.2.3