diff --git a/packages/nocodb/src/controllers/calendars-datas.controller.ts b/packages/nocodb/src/controllers/calendars-datas.controller.ts index 1dfb9c2e8c..29a1be9a42 100644 --- a/packages/nocodb/src/controllers/calendars-datas.controller.ts +++ b/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) diff --git a/packages/nocodb/src/controllers/public-datas.controller.ts b/packages/nocodb/src/controllers/public-datas.controller.ts index 94e4cba39e..187e8ecbdd 100644 --- a/packages/nocodb/src/controllers/public-datas.controller.ts +++ b/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',