Browse Source

fix: handle project name length in backend

feat/0523-export-schema
Wing-Kam Wong 2 years ago committed by Raju Udava
parent
commit
a0c2b652de
  1. 4
      packages/nocodb/src/lib/meta/api/projectApis.ts

4
packages/nocodb/src/lib/meta/api/projectApis.ts

@ -95,6 +95,10 @@ async function projectCreate(req: Request<any, any>, res) {
projectBody.is_meta = false;
}
if (projectBody?.title.length > 50) {
NcError.badRequest('Project title exceeds 50 characters');
}
if (await Project.getByTitle(projectBody?.title)) {
NcError.badRequest('Project title already in use');
}

Loading…
Cancel
Save