summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-04-30 20:56:54 +0500
committerilotterytea <iltsu@alright.party>2024-04-30 20:56:54 +0500
commit184fcd5cb5bacd11271028c1031a7bfef4db48a2 (patch)
treecab57979313878fab91b845511b60f43a092246b /src/main.cpp
parentd0671a30c2b5ec41b131d229716045381332697d (diff)
upd: replaced work to connection
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
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();
});