Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

sort -> sortOrder

Kiran K17102ddc7dd9
diff --git a/apps/web/app/api/customers/[id]/activity/route.ts b/apps/web/app/api/customers/[id]/activity/route.ts
index 8f62872bf6..cba5de706e 100644
--- a/apps/web/app/api/customers/[id]/activity/route.ts
+++ b/apps/web/app/api/customers/[id]/activity/route.ts
@@ -33,7 +33,7 @@ export const GET = withWorkspace(async ({ workspace, params }) => {
getEvents({
customerId: customer.id,
event: "sales",
- order: "desc",
+ sortOrder: "desc",
sortBy: "timestamp",
interval: "1y",
page: 1,
diff --git a/apps/web/lib/actions/partners/backfill-link-data.ts b/apps/web/lib/actions/partners/backfill-link-data.ts
index 81757c3c11..393c2c5d8e 100644
--- a/apps/web/lib/actions/partners/backfill-link-data.ts
+++ b/apps/web/lib/actions/partners/backfill-link-data.ts
@@ -45,7 +45,7 @@ export const backfillLinkData = async ({
interval: "all",
page: 1,
limit: 5000,
- order: "desc",
+ sortOrder: "desc",
sortBy: "timestamp",
});
diff --git a/apps/web/lib/zod/schemas/analytics.ts b/apps/web/lib/zod/schemas/analytics.ts
index 1cc26ac152..20bb2b0191 100644
--- a/apps/web/lib/zod/schemas/analytics.ts
+++ b/apps/web/lib/zod/schemas/analytics.ts
@@ -244,8 +244,8 @@ export const eventsFilterTB = analyticsFilterTB
const sortOrder = z
.enum(["asc", "desc"])
- .optional()
.default("desc")
+ .optional()
.describe("The sort order. The default is `desc`.");
export const eventsQuerySchema = analyticsQuerySchema
diff --git a/apps/web/scripts/backfill-missing-sales.ts b/apps/web/scripts/backfill-missing-sales.ts
index b767c9846a..d2b9d963c7 100644
--- a/apps/web/scripts/backfill-missing-sales.ts
+++ b/apps/web/scripts/backfill-missing-sales.ts
@@ -53,7 +53,7 @@ async function main() {
interval: "all",
page: 1,
limit: 1000,
- order: "desc",
+ sortOrder: "desc",
sortBy: "timestamp",
})) as unknown as SaleEvent[];
diff --git a/apps/web/scripts/backfill-sales.ts b/apps/web/scripts/backfill-sales.ts
index ee9a6b222f..974451fd5a 100644
--- a/apps/web/scripts/backfill-sales.ts
+++ b/apps/web/scripts/backfill-sales.ts
@@ -41,7 +41,7 @@ async function main() {
interval: "all",
page: 1,
limit: 5000,
- order: "desc",
+ sortOrder: "desc",
sortBy: "timestamp",
});