[Hotfix] Fix issues where we're using the wrong database pointers

This commit is contained in:
Akkadius
2024-02-12 21:41:52 -06:00
parent 20cdc1e63d
commit c50100fcdb
8 changed files with 26 additions and 10 deletions
+2 -2
View File
@@ -325,7 +325,7 @@ bool WorldGuildManager::LoadTributes()
tribute_list.clear();
auto tributes = TributesRepository::All(*m_db);
auto tributes = TributesRepository::All(*m_content_db);
for (auto const& t : tributes) {
td.name = t.name;
td.description = t.descr;
@@ -336,7 +336,7 @@ bool WorldGuildManager::LoadTributes()
LogInfo("Loaded [{}] tributes", Strings::Commify(tributes.size()));
auto tribute_levels = TributeLevelsRepository::GetWhere(*m_db, "TRUE ORDER BY tribute_id, level");
auto tribute_levels = TributeLevelsRepository::GetWhere(*m_content_db, "TRUE ORDER BY tribute_id, level");
for (auto const& t : tribute_levels) {
uint32 id = t.tribute_id;