feat: add name limit

This commit is contained in:
2023-11-13 17:04:19 +01:00
parent 2ce9a56d70
commit 9ccad393d0
3 changed files with 69 additions and 3 deletions

View File

@ -45,7 +45,7 @@ export const POST: RequestHandler = async ({ params, request }) => {
if (!inputName) {
throw new Error("Missing name");
}
if (inputName.length > 50) {
if (inputName.length > 100) {
throw new Error("Name too long");
}