feat: expand catalog sorting
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 02:39:42 -04:00
parent 0008af9f2c
commit b036092775
8 changed files with 67 additions and 11 deletions
@@ -58,8 +58,8 @@ export function createSearchQuery({
throw new Error("minPriceMinor must be <= maxPriceMinor");
}
if (!["recent", "price_low", "price_high"].includes(sort)) {
throw new Error("sort must be recent, price_low, or price_high");
if (!["recent", "updated", "name_asc", "name_desc", "price_low", "price_high"].includes(sort)) {
throw new Error("sort must be recent, updated, name_asc, name_desc, price_low, or price_high");
}
return {