mirror of
https://github.com/EQEmu/Server.git
synced 2026-02-21 09:32:25 +00:00
[Bug] Show Petition and Show Petition_Info fix (#3503)
Where Statement was using incorrect field name.
This commit is contained in:
parent
d2aae4d79c
commit
8ebf5bbb78
@ -44,7 +44,7 @@ void ShowPetition(Client *c, const Seperator *sep)
|
||||
|
||||
const uint32 petition_id = Strings::ToUnsignedInt(sep->arg[2]);
|
||||
|
||||
const auto& l = PetitionsRepository::GetWhere(database, fmt::format("petition_id = {}", petition_id));
|
||||
const auto& l = PetitionsRepository::GetWhere(database, fmt::format("petid = {}", petition_id));
|
||||
if (l.empty()) {
|
||||
c->Message(
|
||||
Chat::White,
|
||||
|
||||
@ -49,7 +49,7 @@ void ShowPetitionInfo(Client *c, const Seperator *sep)
|
||||
|
||||
const uint32 petition_id = Strings::ToUnsignedInt(sep->arg[2]);
|
||||
|
||||
const auto& l = PetitionsRepository::GetWhere(database, fmt::format("petition_id = {}", petition_id));
|
||||
const auto& l = PetitionsRepository::GetWhere(database, fmt::format("petid = {}", petition_id));
|
||||
if (l.empty()) {
|
||||
c->Message(
|
||||
Chat::White,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user