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.

fix

Steven Teyc1afa3b53290
diff --git a/apps/web/scripts/sync-tag-analytics.ts b/apps/web/scripts/sync-tag-analytics.ts
index 3fea800dda..b18a2977e8 100644
--- a/apps/web/scripts/sync-tag-analytics.ts
+++ b/apps/web/scripts/sync-tag-analytics.ts
@@ -1,12 +1,10 @@
import prisma from "@/lib/prisma";
import { recordLink } from "@/lib/tinybird";
-import { DUB_PROJECT_ID } from "@dub/utils";
import "dotenv-flow/config";
async function main() {
const links = await prisma.link.findMany({
where: {
- projectId: DUB_PROJECT_ID,
tags: {
some: {},
},
@@ -14,6 +12,11 @@ async function main() {
include: {
tags: true,
},
+ orderBy: {
+ createdAt: "asc",
+ },
+ skip: 0,
+ take: 1000,
});
const res = await Promise.all(links.map((link) => recordLink({ link })));
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index 3405fcd84e..1901e010eb 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -102,7 +102,7 @@ export default function Toggle() {
)}
</div>
)}
- <div className="flex items-center gap-2">
+ <div className="flex w-full items-center justify-end gap-2">
{!isPublicStatsPage && key && <SharePopover />}
{!isPublicStatsPage && !key && <TagSelector />}
<Popover