mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Zone Flags] Use database connection, not content connection (#2759)
This commit is contained in:
parent
a7b35594f8
commit
d93ea9ed86
@ -1100,7 +1100,7 @@ void Client::ClearPEQZoneFlag(uint32 zone_id) {
|
|||||||
|
|
||||||
peqzone_flags.erase(zone_id);
|
peqzone_flags.erase(zone_id);
|
||||||
|
|
||||||
if (!CharacterPeqzoneFlagsRepository::DeleteFlag(content_db, CharacterID(), zone_id)) {
|
if (!CharacterPeqzoneFlagsRepository::DeleteFlag(database, CharacterID(), zone_id)) {
|
||||||
LogError("MySQL Error while trying to clear PEQZone flag for [{}]", GetName());
|
LogError("MySQL Error while trying to clear PEQZone flag for [{}]", GetName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1111,7 +1111,7 @@ bool Client::HasPEQZoneFlag(uint32 zone_id) const {
|
|||||||
|
|
||||||
void Client::LoadPEQZoneFlags() {
|
void Client::LoadPEQZoneFlags() {
|
||||||
const auto l = CharacterPeqzoneFlagsRepository::GetWhere(
|
const auto l = CharacterPeqzoneFlagsRepository::GetWhere(
|
||||||
content_db,
|
database,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"id = {}",
|
"id = {}",
|
||||||
CharacterID()
|
CharacterID()
|
||||||
@ -1193,7 +1193,7 @@ void Client::SetPEQZoneFlag(uint32 zone_id) {
|
|||||||
f.id = CharacterID();
|
f.id = CharacterID();
|
||||||
f.zone_id = zone_id;
|
f.zone_id = zone_id;
|
||||||
|
|
||||||
if (!CharacterPeqzoneFlagsRepository::InsertOne(content_db, f).id) {
|
if (!CharacterPeqzoneFlagsRepository::InsertOne(database, f).id) {
|
||||||
LogError("MySQL Error while trying to set zone flag for [{}]", GetName());
|
LogError("MySQL Error while trying to set zone flag for [{}]", GetName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user