Skip to content

Commit c416426

Browse files
authored
fix(*): commented out additional endpoint (#2826)
1 parent ae9e32a commit c416426

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

services/workflows-service/src/business-report/business-report.controller.external.ts

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
import * as common from '@nestjs/common';
2-
import * as swagger from '@nestjs/swagger';
3-
import { ApiBearerAuth, ApiConsumes } from '@nestjs/swagger';
4-
import * as errors from '@/errors';
52
import {
63
BadRequestException,
74
Body,
85
Param,
96
Query,
107
Res,
118
UploadedFile,
12-
UseGuards,
139
UseInterceptors,
1410
} from '@nestjs/common';
15-
import { AdminAuthGuard } from '@/common/guards/admin-auth.guard';
11+
import * as swagger from '@nestjs/swagger';
12+
import { ApiBearerAuth, ApiConsumes } from '@nestjs/swagger';
13+
import * as errors from '@/errors';
1614
import { BusinessReportService } from '@/business-report/business-report.service';
1715
import { AppLoggerService } from '@/common/app-logger/app-logger.service';
1816
import { CustomerService } from '@/customer/customer.service';
@@ -204,20 +202,20 @@ export class BusinessReportControllerExternal {
204202
res.send(result);
205203
}
206204

207-
@common.Get()
208-
@UseGuards(AdminAuthGuard)
209-
@swagger.ApiOkResponse({ type: [String] })
210-
@swagger.ApiForbiddenResponse({ type: errors.ForbiddenException })
211-
@swagger.ApiExcludeEndpoint()
212-
async list() {
213-
return await this.prisma.businessReport.findMany({
214-
include: {
215-
project: {
216-
include: {
217-
customer: true,
218-
},
219-
},
220-
},
221-
});
222-
}
205+
// @common.Get()
206+
// @UseGuards(AdminAuthGuard)
207+
// @swagger.ApiOkResponse({ type: [String] })
208+
// @swagger.ApiForbiddenResponse({ type: errors.ForbiddenException })
209+
// @swagger.ApiExcludeEndpoint()
210+
// async list() {
211+
// return await this.prisma.businessReport.findMany({
212+
// include: {
213+
// project: {
214+
// include: {
215+
// customer: true,
216+
// },
217+
// },
218+
// },
219+
// });
220+
// }
223221
}

0 commit comments

Comments
 (0)