fix(api): remove unused listOrdersByConsumer helper

The function performed client-side filtering on top of listOrders
but was never called by any page. listPlayersByShop is kept as-is
since the backend has no dedicated shop players endpoint.
This commit is contained in:
zetaloop
2026-05-01 04:23:57 +08:00
parent b6002f5691
commit 1f20198f23
3 changed files with 22 additions and 10 deletions
+7
View File
@@ -21,6 +21,13 @@ describe("lib/api/orders", () => {
quantity: 1,
})
expect(fetch).toHaveBeenCalledWith(
expect.any(String),
expect.objectContaining({
body: JSON.stringify({ playerId: 1005, serviceId: 5001, quantity: 1 }),
}),
)
expect(res).toEqual({
decision: {
ok: false,