Merge pull request #374 from emrysal/bugfix/trim-slug-to-fix-404
This commit is contained in:
commit
5cf6e61061
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||||
if (req.method == "PATCH" || req.method == "POST") {
|
if (req.method == "PATCH" || req.method == "POST") {
|
||||||
const data = {
|
const data = {
|
||||||
title: req.body.title,
|
title: req.body.title,
|
||||||
slug: req.body.slug,
|
slug: req.body.slug.trim(),
|
||||||
description: req.body.description,
|
description: req.body.description,
|
||||||
length: parseInt(req.body.length),
|
length: parseInt(req.body.length),
|
||||||
hidden: req.body.hidden,
|
hidden: req.body.hidden,
|
||||||
|
|
Loading…
Reference in a new issue