Browse Source

fix: add missing return statement

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5239/head
Pranav C 2 years ago
parent
commit
0cb2d13701
  1. 2
      packages/nocodb/src/lib/controllers/tableController.ts
  2. 2
      packages/nocodb/src/lib/services/dataService/index.ts
  3. 2
      packages/nocodb/src/lib/services/projectService.ts

2
packages/nocodb/src/lib/controllers/tableController.ts

@ -22,7 +22,7 @@ export async function tableList(req: Request, res: Response<TableListType>) {
}
export async function tableCreate(req: Request<any, any, TableReqType>, res) {
const result = tableService.tableCreate({
const result = await tableService.tableCreate({
projectId: req.params.projectId,
baseId: req.params.baseId,
table: req.body,

2
packages/nocodb/src/lib/services/dataService/index.ts

@ -56,7 +56,7 @@ export async function dataInsert(
dbDriver: NcConnectionMgrv2.get(base),
});
await baseModel.insert(param.body, null, param.cookie);
return await baseModel.insert(param.body, null, param.cookie);
}
export async function dataUpdate(

2
packages/nocodb/src/lib/services/projectService.ts

@ -106,7 +106,7 @@ export async function projectCreate(param: {
T.emit('evt', { evt_type: 'project:rest' });
project;
return project;
}
const nanoid = customAlphabet('1234567890abcdefghijklmnopqrstuvwxyz_', 4);

Loading…
Cancel
Save