feat: add name limit
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user