This commit is contained in:
Kai Philipp
2019-09-11 12:56:54 +02:00
parent c97fd1daa1
commit 0e90d0ab52
+1 -2
View File
@@ -238,7 +238,6 @@ void
ServerDBThread::SetPlayerLastGames(unsigned requestId, DB_id playerId, std::vector<long> lastGames)
{
LOG_ERROR("ServerDBThread::SetPlayerLastGames() entered.");
// The game id param is added later (during init of the async op), because it may be unknown.
string lastGamesFieldValue = "1,2,3";
string lastIp = "127.0.0.1";
list<string> params;
@@ -249,7 +248,7 @@ ServerDBThread::SetPlayerLastGames(unsigned requestId, DB_id playerId, std::vect
params.push_back(lastIp);
boost::shared_ptr<AsyncDBQuery> asyncQuery(
// @FIXME: why does AsyncDBPlayerLastGames not work?
new SingleAsyncDBQuery(
new AsyncDBPlayerLastGames(
requestId,
QUERY_PLAYER_LASTGAMES_PREPARE,
params));