Skip to content

Commit 765c6ce

Browse files
fix zzc error
1 parent 4f1d5be commit 765c6ce

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.DS_Store

2 KB
Binary file not shown.

msg_controller.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ void request_processing(const HttpRequestPtr &req, std::function<void(const Http
131131
}
132132
auto res = HttpResponse::newHttpResponse();
133133
res->setBody("Success");
134+
callback(res);
134135
}
135136
void info(const HttpRequestPtr &req, std::function<void(const HttpResponsePtr &)> &&callback)
136137
{

mysql.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void sql_process_request(std::string sender, std::string receiver, std::string a
6262
std::string readdata = "SELECT req FROM users WHERE username = ?";
6363
sql::PreparedStatement *readdatament = con->prepareStatement(readdata);
6464

65-
readdatament->setString(1, sender);
65+
readdatament->setString(1, receiver);
6666

6767
sql::ResultSet *resultSet = readdatament->executeQuery();
6868
std::string req;

0 commit comments

Comments
 (0)