Skip to content

Commit 6bb27d3

Browse files
committed
remove old indexes
1 parent e2a2b41 commit 6bb27d3

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

apps/web/app/(ee)/api/admin/partners/trusted/route.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import * as z from "zod/v4";
88
export const GET = withAdmin(async () => {
99
const partners = await prisma.partner.findMany({
1010
where: {
11-
trustedAt: {
12-
not: null,
13-
},
11+
networkStatus: "trusted",
1412
},
1513
orderBy: {
1614
trustedAt: "desc",

packages/email/src/templates/network-partner-application-approved.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ export default function NetworkPartnerApplicationApproved({
7777
</Link>
7878
</Section>
7979

80-
<Footer
81-
email={email}
82-
notificationSettingsUrl="https://partners.dub.co/profile/notifications"
83-
/>
80+
<Section className="mx-auto max-w-[400px] text-center">
81+
<Footer email={email} />
82+
</Section>
8483
</Container>
8584
</Body>
8685
</Tailwind>

packages/prisma/schema/partner.prisma

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ model Partner {
113113
@@index(country)
114114
@@index(networkStatus)
115115
@@index(createdAt)
116-
@@index(trustedAt) // TODO: remove index once we fully migrate to networkStatus
117116
@@index(payoutMethodHash)
118117
@@index(cryptoWalletAddress)
119118
@@index(identityVerifiedAt)

0 commit comments

Comments
 (0)