Browse Source

fix(nocodb): build

pull/7716/head
DarkPhoenix2704 8 months ago
parent
commit
b5df3431ae
  1. 8
      packages/nocodb/src/controllers/calendars-datas.controller.ts
  2. 15
      packages/nocodb/src/controllers/public-datas.controller.ts

8
packages/nocodb/src/controllers/calendars-datas.controller.ts

@ -1,9 +1,11 @@
import { Controller, Get, Param, Req, UseGuards } from '@nestjs/common';
import { Request } from 'express';
import { Controller, Get, Param, Req, Res, UseGuards } from '@nestjs/common';
import { Request, Response } from 'express';
import { GlobalGuard } from '~/guards/global/global.guard';
import { DataApiLimiterGuard } from '~/guards/data-api-limiter.guard';
import { CalendarDatasService } from '~/services/calendar-datas.service';
import Acl from '~/utils/acl';
import { parseHrtimeToMilliSeconds } from '~/helpers';
import { Acl } from '~/middlewares/extract-ids/extract-ids.middleware';
@Controller()
@UseGuards(DataApiLimiterGuard, GlobalGuard)

15
packages/nocodb/src/controllers/public-datas.controller.ts

@ -34,21 +34,6 @@ export class PublicDatasController {
return pagedResponse;
}
@Get([
'/api/v1/db/public/shared-view/:sharedViewUuid/countByDate',
'/api/v2/public/shared-view/:sharedViewUuid/countByDate',
])
async countByDate(
@Req() req: Request,
@Param('sharedViewUuid') sharedViewUuid: string,
) {
return await this.publicDatasService.getCalendarRecordCount({
query: req.query,
password: req.headers?.['xc-password'] as string,
sharedViewUuid,
});
}
@Get([
'/api/v1/db/public/shared-view/:sharedViewUuid/groupby',
'/api/v2/public/shared-view/:sharedViewUuid/groupby',

Loading…
Cancel
Save