mirror of
https://github.com/DerTyp7/explainegy-nextjs.git
synced 2025-10-30 05:07:14 +01:00
asd
This commit is contained in:
@@ -72,6 +72,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
}
|
||||
|
||||
data.name = formatTextToUrlName(data.title);
|
||||
data.categoryId = data.categoryId.toString();
|
||||
|
||||
prisma.article
|
||||
.create({ data: data, include: { category: true } })
|
||||
.then(
|
||||
|
||||
Reference in New Issue
Block a user