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/commands/request.hpp | 2 +- src/commands/request_util.cpp | 2 +- src/commands/request_util.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands') diff --git a/src/commands/request.hpp b/src/commands/request.hpp index ee7bd11..efa0655 100644 --- a/src/commands/request.hpp +++ b/src/commands/request.hpp @@ -12,6 +12,6 @@ namespace bot::command { std::optional subcommand_id; std::optional message; const irc::Message &irc_message; - const pqxx::work &work; + pqxx::connection &conn; }; } diff --git a/src/commands/request_util.cpp b/src/commands/request_util.cpp index 1262a3d..08e958a 100644 --- a/src/commands/request_util.cpp +++ b/src/commands/request_util.cpp @@ -12,7 +12,7 @@ namespace bot::command { std::optional generate_request( const command::CommandLoader &command_loader, const irc::Message &irc_message, - const pqxx::work &work) { + pqxx::connection &conn) { std::vector parts = utils::string::split_text(irc_message.message, ' '); diff --git a/src/commands/request_util.hpp b/src/commands/request_util.hpp index 3d9831d..dea6e12 100644 --- a/src/commands/request_util.hpp +++ b/src/commands/request_util.hpp @@ -9,5 +9,5 @@ namespace bot::command { std::optional generate_request( const command::CommandLoader &command_loader, const irc::Message &irc_message, - const pqxx::work &work); + pqxx::connection &conn); } -- cgit v1.2.3