Set avatar through URL

This commit is contained in:
Bailey Pumfleet committed 2021-04-29 13:36:37 +01:00
1 parent 7d7b627304
commit c2dfbaad88
2 files changed
+16 -5

No files matched your search

+2
View File
@@ -26,6 +26,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const username = req.body.username;
const name = req.body.name;
const description = req.body.description;
const avatar = req.body.avatar;
const timeZone = req.body.timeZone;
const updateUser = await prisma.user.update({
@@ -35,6 +36,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
data: {
username,
name,
avatar,
bio: description,
timeZone: timeZone,
},