Fixed last user nickname

This commit is contained in:
WolverinDEV 2020-08-01 00:09:01 +02:00
parent bd9cca6fb1
commit 669b3ae349

View File

@ -1028,7 +1028,7 @@ std::shared_ptr<Properties> DatabaseHelper::loadClientProperties(const std::shar
prop.value(),
column
);
sql::command(this->sql, "UPDATE `clients_server` SET `" + column + "` = :value WHERE `server_id` = :server_id AND `client_database_id` = :cldbid",
sql::command(this->sql, "UPDATE `clients_server` SET `" + column + "` = :value WHERE `server_id` = :serverId AND `client_database_id` = :cldbid",
variable{":serverId", server ? server->getServerId() : 0},
variable{":cldbid", cldbid},
variable{":value", prop.value()}