Skip to content

Commit d8468cf

Browse files
Update apps/webapp/app/routes/api.v1.plain.customer-cards.ts
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 4a86da7 commit d8468cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/webapp/app/routes/api.v1.plain.customer-cards.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export async function action({ request }: ActionFunctionArgs) {
140140
? { email: customer.email }
141141
: null;
142142

143-
const user = where ? await prisma.user.findUnique({ where, include: userInclude }) : null;
143+
const user = where ? await prisma.user.findFirst({ where, include: userInclude }) : null;
144144

145145
// If user not found, return empty cards
146146
if (!user) {

0 commit comments

Comments
 (0)