Skip to content

Commit c3b227e

Browse files
committed
make things more forgiving
1 parent fba51b9 commit c3b227e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/routes/_auth+/onboarding_.$provider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { CheckboxField, ErrorList, Field } from '#app/components/forms.tsx'
1818
import { Spacer } from '#app/components/spacer.tsx'
1919
import { StatusButton } from '#app/components/ui/status-button.tsx'
2020
import {
21-
authenticator,
2221
sessionKey,
2322
signupWithConnection,
2423
requireAnonymous,

tests/playwright-utils.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,14 @@ export const test = base.extend<{
122122
return newGitHubUser
123123
})
124124

125-
const user = await prisma.user.findUniqueOrThrow({
125+
const user = await prisma.user.findUnique({
126126
select: { id: true, name: true },
127127
where: { email: normalizeEmail(ghUser!.primaryEmail) },
128128
})
129-
await prisma.user.delete({ where: { id: user.id } })
130-
await prisma.session.deleteMany({ where: { userId: user.id } })
129+
if (user) {
130+
await prisma.user.delete({ where: { id: user.id } })
131+
await prisma.session.deleteMany({ where: { userId: user.id } })
132+
}
131133
await deleteGitHubUser(ghUser!.primaryEmail)
132134
},
133135
})

0 commit comments

Comments
 (0)