[Bug Fix] Fix Tradeskill Queries (#4661)

This commit is contained in:
Alex King 2025-02-08 21:35:18 -05:00 committed by GitHub
parent 4658e7f60d
commit 4fe229c475
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View File

@ -15661,7 +15661,7 @@ void Client::Handle_OP_TradeSkillRecipeInspect(const EQApplicationPacket* app)
auto s = (TradeSkillRecipeInspect_Struct*) app->pBuffer;
const auto& v = TradeskillRecipeEntriesRepository::GetWhere(
database,
content_db,
fmt::format(
"`recipe_id` = {} AND `componentcount` = 0 AND `successcount` > 0 LIMIT 1",
s->recipe_id

View File

@ -10,7 +10,7 @@ void FindRecipe(Client *c, const Seperator *sep)
const auto recipe_id = static_cast<uint16>(Strings::ToUnsignedInt(sep->arg[2]));
const auto& l = TradeskillRecipeRepository::GetWhere(
database,
content_db,
fmt::format("id = {}", recipe_id)
);
@ -56,7 +56,7 @@ void FindRecipe(Client *c, const Seperator *sep)
auto found_count = 0;
const auto& l = TradeskillRecipeRepository::GetWhere(
database,
content_db,
fmt::format(
"LOWER(`name`) LIKE '%%{}%%' ORDER BY `id` ASC",
search_criteria

View File

@ -13,12 +13,12 @@ void ShowRecipe(Client *c, const Seperator *sep)
const uint16 recipe_id = static_cast<uint16>(Strings::ToUnsignedInt(sep->arg[2]));
const auto& re = TradeskillRecipeEntriesRepository::GetWhere(
database,
content_db,
fmt::format("recipe_id = {} ORDER BY id ASC", recipe_id)
);
const auto& r = TradeskillRecipeRepository::GetWhere(
database,
content_db,
fmt::format("id = {}", recipe_id)
);

View File

@ -4430,7 +4430,7 @@ int QuestManager::GetRecipeMadeCount(uint32 recipe_id) {
std::string QuestManager::GetRecipeName(uint32 recipe_id) {
auto r = TradeskillRecipeRepository::GetWhere(
database,
content_db,
fmt::format("id = {}", recipe_id)
);