[Bug] Show Petition and Show Petition_Info fix (#3503)

Where Statement was using incorrect field name.
This commit is contained in:
Michael 2023-07-18 17:15:21 -04:00 committed by GitHub
parent d2aae4d79c
commit 8ebf5bbb78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,