Browse Source

fix: use columnId to keep it consistent

pull/5444/head
Wing-Kam Wong 2 years ago
parent
commit
d2222cf0b2
  1. 12
      packages/nocodb-nest/src/controllers/public-datas.controller.ts

12
packages/nocodb-nest/src/controllers/public-datas.controller.ts

@ -90,35 +90,35 @@ export class PublicDatasController {
return pagedResponse; return pagedResponse;
} }
@Get('/api/v1/db/public/shared-view/:sharedViewUuid/rows/:rowId/mm/:colId') @Get('/api/v1/db/public/shared-view/:sharedViewUuid/rows/:rowId/mm/:columnId')
async publicMmList( async publicMmList(
@Request() req, @Request() req,
@Param('sharedViewUuid') sharedViewUuid: string, @Param('sharedViewUuid') sharedViewUuid: string,
@Param('rowId') rowId: string, @Param('rowId') rowId: string,
@Param('colId') colId: string, @Param('columnId') columnId: string,
) { ) {
const paginatedResponse = await this.publicDatasService.publicMmList({ const paginatedResponse = await this.publicDatasService.publicMmList({
query: req.query, query: req.query,
password: req.headers?.['xc-password'] as string, password: req.headers?.['xc-password'] as string,
sharedViewUuid: sharedViewUuid, sharedViewUuid: sharedViewUuid,
columnId: colId, columnId: columnId,
rowId: rowId, rowId: rowId,
}); });
return paginatedResponse; return paginatedResponse;
} }
@Get('/api/v1/db/public/shared-view/:sharedViewUuid/rows/:rowId/hm/:colId') @Get('/api/v1/db/public/shared-view/:sharedViewUuid/rows/:rowId/hm/:columnId')
async publicHmList( async publicHmList(
@Request() req, @Request() req,
@Param('sharedViewUuid') sharedViewUuid: string, @Param('sharedViewUuid') sharedViewUuid: string,
@Param('rowId') rowId: string, @Param('rowId') rowId: string,
@Param('colId') colId: string, @Param('columnId') columnId: string,
) { ) {
const paginatedResponse = await this.publicDatasService.publicHmList({ const paginatedResponse = await this.publicDatasService.publicHmList({
query: req.query, query: req.query,
password: req.headers?.['xc-password'] as string, password: req.headers?.['xc-password'] as string,
sharedViewUuid: sharedViewUuid, sharedViewUuid: sharedViewUuid,
columnId: colId, columnId: columnId,
rowId: rowId, rowId: rowId,
}); });
return paginatedResponse; return paginatedResponse;

Loading…
Cancel
Save