Skip to content

Commit

Permalink
silence race condition errors
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Jun 16, 2024
1 parent 661df7c commit f3a605c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/trivia/trivia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ const guild_settings_t TriviaModule::GetGuildSettings(dpp::snowflake guild_id)
}
return gs;
} else {
db::backgroundquery("INSERT INTO bot_guild_settings (snowflake_id) VALUES('?')", {guild_id});
db::backgroundquery("INSERT INTO bot_guild_settings (snowflake_id) VALUES('?') ON DUPLICATE KEY UPDATE prefix = prefix", {guild_id});
guild_settings_t gs(time(nullptr), guild_id, "!", {}, 3238819, false, false, false, false, 0, "", "en", 20, 200, 15, 200, false);
{
std::unique_lock locker(settingcache_mutex);
Expand Down

0 comments on commit f3a605c

Please sign in to comment.