mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
[Bug Fix] Fix ObjectContentsRepository using content_db (#4076)
# Notes - `*this` was using content database, causing this not to work on servers using sharded databases.
This commit is contained in:
parent
9a0b3a4c36
commit
f498bac574
@ -214,7 +214,7 @@ void ZoneDatabase::LoadWorldContainer(uint32 parent_id, EQ::ItemInstance* contai
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto& l = ObjectContentsRepository::GetWhere(
|
const auto& l = ObjectContentsRepository::GetWhere(
|
||||||
*this,
|
database,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"`parentid` = {}",
|
"`parentid` = {}",
|
||||||
parent_id
|
parent_id
|
||||||
@ -271,7 +271,7 @@ void ZoneDatabase::SaveWorldContainer(uint32 zone_id, uint32 parent_id, const EQ
|
|||||||
}
|
}
|
||||||
|
|
||||||
ObjectContentsRepository::ReplaceOne(
|
ObjectContentsRepository::ReplaceOne(
|
||||||
*this,
|
database,
|
||||||
ObjectContentsRepository::ObjectContents{
|
ObjectContentsRepository::ObjectContents{
|
||||||
.zoneid = zone_id,
|
.zoneid = zone_id,
|
||||||
.parentid = parent_id,
|
.parentid = parent_id,
|
||||||
@ -293,7 +293,7 @@ void ZoneDatabase::SaveWorldContainer(uint32 zone_id, uint32 parent_id, const EQ
|
|||||||
void ZoneDatabase::DeleteWorldContainer(uint32 parent_id, uint32 zone_id)
|
void ZoneDatabase::DeleteWorldContainer(uint32 parent_id, uint32 zone_id)
|
||||||
{
|
{
|
||||||
ObjectContentsRepository::DeleteWhere(
|
ObjectContentsRepository::DeleteWhere(
|
||||||
*this,
|
database,
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"`parentid` = {} AND `zoneid` = {}",
|
"`parentid` = {} AND `zoneid` = {}",
|
||||||
parent_id,
|
parent_id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user