diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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(); }); |
