Skip to content

Commit

Permalink
Merge pull request #50 from Dmitriyev/search-pairs
Browse files Browse the repository at this point in the history
Search pairs
  • Loading branch information
Dmitriyev committed Oct 10, 2023
2 parents 87088d9 + dcb4667 commit 801a87a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/server/db_adapter/adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace db_adapter {
user.Orientation << ", " <<
"'" << user.City << "', " <<
"'" << user.Bio << "', " <<
StringVectorToPostgreSQLFormat(user.Avatars) << "', " <<
StringVectorToPostgreSQLFormat(user.Avatars) << ", " <<
user.TargetSex << ");";

work.exec0(insertCommand.str());
Expand Down
4 changes: 2 additions & 2 deletions backend/server/db_adapter/redis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ namespace db_adapter {
if (userId.has_value()) {
auto statusOk = RedisClient->execCommandSync<bool>(
[](const RedisResult &r) {
return r.type() == drogon::nosql::RedisResultType::kString && r.asString() == "OK";
return true;
},
"set %s %d",
tgUserIdToUserIdKey.c_str(),
Expand All @@ -165,7 +165,7 @@ namespace db_adapter {
const auto userIdToTgUserIdKey = FormatKey("user", userId.value(), "tg_user_id");
statusOk = RedisClient->execCommandSync<bool>(
[](const RedisResult &r) {
return r.type() == drogon::nosql::RedisResultType::kString && r.asString() == "OK";
return true;
},
"set %s %d",
userIdToTgUserIdKey.c_str(),
Expand Down

0 comments on commit 801a87a

Please sign in to comment.