The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small updates
Steven Tey97cabffa12da
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/groups-table.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/groups-table.tsxindex 30fcb333f1..da8bc9db3b 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/groups-table.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/groups/groups-table.tsx@@ -81,7 +81,7 @@ export function GroupsTable() {{id: "partners",header: "Partners",- accessorFn: (d) => nFormatter(d.partners),+ accessorFn: (d) => nFormatter(d.partners, { full: true }),},{id: "clicks",diff --git a/apps/web/lib/api/groups/get-groups.ts b/apps/web/lib/api/groups/get-groups.tsindex 15d36722a8..3a36b744f8 100644--- a/apps/web/lib/api/groups/get-groups.ts+++ b/apps/web/lib/api/groups/get-groups.ts@@ -64,7 +64,7 @@ export async function getGroups(filters: GroupFilters) {`}FROM PartnerGroup pg- LEFT JOIN ProgramEnrollment pe ON pe.groupId = pg.id+ LEFT JOIN ProgramEnrollment pe ON pe.groupId = pg.id AND pe.status IN ('approved', 'invited')${includeExpandedFields? Prisma.sql`diff --git a/apps/web/lib/api/partners/get-partners.ts b/apps/web/lib/api/partners/get-partners.tsindex 66094901d9..cffd102bcc 100644--- a/apps/web/lib/api/partners/get-partners.ts+++ b/apps/web/lib/api/partners/get-partners.ts@@ -132,7 +132,7 @@ export async function getPartners(filters: PartnerFilters) {}WHEREpe.programId = ${programId}- ${status ? Prisma.sql`AND pe.status = ${status}` : Prisma.sql`AND pe.status NOT IN ('pending', 'rejected', 'banned', 'archived')`}+ ${status ? Prisma.sql`AND pe.status = ${status}` : Prisma.sql`AND pe.status IN ('approved', 'invited')`}${tenantId ? Prisma.sql`AND pe.tenantId = ${tenantId}` : Prisma.sql``}${country ? Prisma.sql`AND p.country = ${country}` : Prisma.sql``}${diff --git a/apps/web/scripts/migrations/backfill-application-groupId.ts b/apps/web/scripts/migrations/backfill-application-groupId.tsindex 8db3157a2d..bb5583abd6 100644--- a/apps/web/scripts/migrations/backfill-application-groupId.ts+++ b/apps/web/scripts/migrations/backfill-application-groupId.ts@@ -11,8 +11,6 @@ async function main() {take: 100,});- console.table(programs);-const programApplications = await prisma.programApplication.groupBy({by: ["programId"],where: {