Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Commit 7409b23

Browse files
update correct profile on /api/profiles/[id] (#274)
1 parent 8035d39 commit 7409b23

File tree

1 file changed

+1
-1
lines changed
  • packages/squeak/src/pages/api/profiles

1 file changed

+1
-1
lines changed

packages/squeak/src/pages/api/profiles/[id].ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function handlePatch(req: NextApiRequest, res: NextApiResponse) {
8181
}
8282

8383
const profile = await prisma.profile.update({
84-
where: { id: session.profileId },
84+
where: { id: profileId },
8585
data,
8686
})
8787

0 commit comments

Comments
 (0)