Browse Source

chore: lint

pull/6644/head
Pranav C 1 year ago
parent
commit
77343f3c74
  1. 20
      packages/nocodb/src/controllers/bulk-data-alias.controller.ts
  2. 8
      packages/nocodb/src/controllers/data-alias-nested.controller.ts
  3. 3
      packages/nocodb/src/services/api-docs/swagger/templates/paths.ts

20
packages/nocodb/src/controllers/bulk-data-alias.controller.ts

@ -20,9 +20,7 @@ import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard';
export class BulkDataAliasController {
constructor(private bulkDataAliasService: BulkDataAliasService) {}
@Post([
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName',
])
@Post(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName'])
@HttpCode(200)
@Acl('bulkDataInsert')
async bulkDataInsert(
@ -42,9 +40,7 @@ export class BulkDataAliasController {
res.json(exists);
}
@Patch([
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName',
])
@Patch(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName'])
@Acl('bulkDataUpdate')
async bulkDataUpdate(
@Request() req,
@ -61,9 +57,7 @@ export class BulkDataAliasController {
}
// todo: Integrate with filterArrJson bulkDataUpdateAll
@Patch([
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName/all',
])
@Patch(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName/all'])
@Acl('bulkDataUpdateAll')
async bulkDataUpdateAll(
@Request() req,
@ -80,9 +74,7 @@ export class BulkDataAliasController {
});
}
@Delete([
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName',
])
@Delete(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName'])
@Acl('bulkDataDelete')
async bulkDataDelete(
@Request() req,
@ -100,9 +92,7 @@ export class BulkDataAliasController {
// todo: Integrate with filterArrJson bulkDataDeleteAll
@Delete([
'/api/v1/db/data/bulk/:orgs/:baseName/:tableName/all',
])
@Delete(['/api/v1/db/data/bulk/:orgs/:baseName/:tableName/all'])
@Acl('bulkDataDeleteAll')
async bulkDataDeleteAll(
@Request() req,

8
packages/nocodb/src/controllers/data-alias-nested.controller.ts

@ -19,9 +19,7 @@ export class DataAliasNestedController {
constructor(private dataAliasNestedService: DataAliasNestedService) {}
// todo: handle case where the given column is not ltar
@Get([
'/api/v1/db/data/:orgs/:baseName/:tableName/:rowId/mm/:columnName',
])
@Get(['/api/v1/db/data/:orgs/:baseName/:tableName/:rowId/mm/:columnName'])
@Acl('mmList')
async mmList(
@Request() req,
@ -101,9 +99,7 @@ export class DataAliasNestedController {
// todo: handle case where the given column is not ltar
@Get([
'/api/v1/db/data/:orgs/:baseName/:tableName/:rowId/hm/:columnName',
])
@Get(['/api/v1/db/data/:orgs/:baseName/:tableName/:rowId/hm/:columnName'])
@Acl('hmList')
async hmList(
@Request() req,

3
packages/nocodb/src/services/api-docs/swagger/templates/paths.ts

@ -446,7 +446,8 @@ export const getModelPaths = async (ctx: {
: {}),
}
: {}),
[`/api/v1/db/data/${ctx.orgs}/${ctx.baseName}/${ctx.tableName}/export/{type}`]: {
[`/api/v1/db/data/${ctx.orgs}/${ctx.baseName}/${ctx.tableName}/export/{type}`]:
{
parameters: [exportTypeParam],
get: {
summary: 'Rows export',

Loading…
Cancel
Save