Skip to content

Commit 512aef6

Browse files
authored
Fix: ensure resource routes return valid Response objects (#905)
1 parent acb0c51 commit 512aef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/routes/resources+/download-user-data.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { data, type LoaderFunctionArgs } from 'react-router'
1+
import { type LoaderFunctionArgs } from 'react-router'
22
import { requireUserId } from '#app/utils/auth.server.ts'
33
import { prisma } from '#app/utils/db.server.ts'
44
import { getDomainUrl } from '#app/utils/misc.tsx'
@@ -41,7 +41,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
4141

4242
const domain = getDomainUrl(request)
4343

44-
return data({
44+
return Response.json({
4545
user: {
4646
...user,
4747
image: user.image

0 commit comments

Comments
 (0)