mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-30 21:52:26 +00:00
[BugFix] Fix a display error regarding a few trader/buyer query errors (#4514)
This commit is contained in:
parent
ae198ae043
commit
f76c798910
@ -236,6 +236,10 @@ public:
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (buyers.empty()) {
|
||||||
|
return all_entries;
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<std::string> char_ids{};
|
std::vector<std::string> char_ids{};
|
||||||
for (auto const &bl : buyers) {
|
for (auto const &bl : buyers) {
|
||||||
char_ids.push_back((std::to_string(bl.char_id)));
|
char_ids.push_back((std::to_string(bl.char_id)));
|
||||||
|
|||||||
@ -120,6 +120,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
DeleteWhere(db, fmt::format("`char_id` = '{}';", char_id));
|
DeleteWhere(db, fmt::format("`char_id` = '{}';", char_id));
|
||||||
|
if (buy_line_ids.empty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
BaseBuyerBuyLinesRepository::DeleteWhere(
|
BaseBuyerBuyLinesRepository::DeleteWhere(
|
||||||
db,
|
db,
|
||||||
fmt::format("`id` IN({})", Strings::Implode(", ", buy_line_ids))
|
fmt::format("`id` IN({})", Strings::Implode(", ", buy_line_ids))
|
||||||
|
|||||||
@ -217,6 +217,10 @@ public:
|
|||||||
delete_ids.push_back(std::to_string(e.id));
|
delete_ids.push_back(std::to_string(e.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (delete_ids.empty()) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return DeleteWhere(db, fmt::format("`id` IN({})", Strings::Implode(",", delete_ids)));
|
return DeleteWhere(db, fmt::format("`id` IN({})", Strings::Implode(",", delete_ids)));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user