Skip to content

Commit

Permalink
fix: fix contains check
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 authored Sep 20, 2024
1 parent 6b179c1 commit 65e6b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ user::user(const dpp::json& j)
DESERIALIZE_OPTIONAL_STRING(j, bio);
DESERIALIZE_OPTIONAL_STRING(j, banner);

if (j.contains("contains")) {
if (j.contains("socials")) {
socials = std::optional{user_socials{j["socials"].template get<dpp::json>()}};
}

Expand All @@ -249,4 +249,4 @@ user::user(const dpp::json& j)
DESERIALIZE_ALIAS(j, mod, is_moderator, bool);
DESERIALIZE_ALIAS(j, webMod, is_web_moderator, bool);
DESERIALIZE_ALIAS(j, admin, is_admin, bool);
}
}

0 comments on commit 65e6b21

Please sign in to comment.