[Fix] Add price change check to the Bazaar Search Window purchase mechanics (#4632)

This commit is contained in:
Mitch Freeman
2025-02-01 16:30:07 -04:00
committed by GitHub
parent 29701d0ea7
commit 0a20100d12
6 changed files with 37 additions and 3 deletions
+4 -1
View File
@@ -130,7 +130,8 @@ public:
}
for (auto &i: items) {
i.item_cost = new_price;
i.item_cost = new_price;
i.listing_date = time(nullptr);
}
return ReplaceMany(db, items);
@@ -178,6 +179,7 @@ public:
auto m = trader_item[0];
m.item_charges = quantity;
m.listing_date = time(nullptr);
return UpdateOne(db, m);
}
@@ -221,6 +223,7 @@ public:
}
e.active_transaction = status == true ? 1 : 0;
e.listing_date = time(nullptr);
return UpdateOne(db, e);
}