From f88d3bb3e3def8f3e621693d508de4a6517dfdb6 Mon Sep 17 00:00:00 2001 From: Ignas-rgb <61393113+Ignas-rgb@users.noreply.github.com> Date: Fri, 7 Jun 2024 17:00:22 +0300 Subject: [PATCH] update naming and make method private --- src/admin/admin.service.ts | 2 +- src/admin/dto/full-report.dto.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/admin/admin.service.ts b/src/admin/admin.service.ts index 8edb422..5c69c6f 100644 --- a/src/admin/admin.service.ts +++ b/src/admin/admin.service.ts @@ -165,7 +165,7 @@ export class AdminService { } } - async sendTransferRequest( + private async sendTransferRequest( transferReportDto: TransferReportDto, ): Promise { let returnValue = null; diff --git a/src/admin/dto/full-report.dto.ts b/src/admin/dto/full-report.dto.ts index c303395..bb50705 100644 --- a/src/admin/dto/full-report.dto.ts +++ b/src/admin/dto/full-report.dto.ts @@ -27,10 +27,10 @@ export class FullReportDto { email: string; @ApiProperty() - controle: string; + inspection: string; @ApiProperty() - controleId: string; + inspectionId: string; @ApiProperty() @ToBoolean() @@ -73,8 +73,8 @@ export class FullReportDto { longitude: number, latitude: number, email: string, - controle: string, - controleId: string, + inspection: string, + inspectionId: string, isVisible: boolean, isDeleted: boolean, isTransferred: boolean, @@ -93,8 +93,8 @@ export class FullReportDto { this.longitude = longitude; this.latitude = latitude; this.email = email; - this.controle = controle; - this.controleId = controleId; + this.inspection = inspection; + this.inspectionId = inspectionId; this.isVisible = isVisible; this.isDeleted = isDeleted; this.isTransferred = isTransferred;