Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gchauhan-aot committed Sep 25, 2024
1 parent 78fa3be commit 5588d70
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
1 change: 0 additions & 1 deletion vehicles/src/common/enum/user-role.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ export const CLIENT_USER_ROLE_LIST: readonly ClientUserRole[] =

export const IDIR_USER_ROLE_LIST: readonly IDIRUserRole[] =
Object.values(IDIRUserRole);

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ import { JwtServiceAccountAuthGuard } from 'src/common/guard/jwt-sa-auth.guard';
import { PermitIdDto } from 'src/modules/permit-application-payment/permit/dto/request/permit-id.dto';
import { ApiPaginatedResponse } from '../../../common/decorator/api-paginate-response';
import { Permissions } from '../../../common/decorator/permissions.decorator';
import { IDIR_USER_ROLE_LIST, IDIRUserRole } from '../../../common/enum/user-role.enum';
import {
IDIR_USER_ROLE_LIST,
IDIRUserRole,
} from '../../../common/enum/user-role.enum';
import { PaginationDto } from '../../../common/dto/paginate/pagination';
import { ReadApplicationMetadataDto } from './dto/response/read-application-metadata.dto';
import { GetApplicationQueryParamsDto } from './dto/request/queryParam/getApplication.query-params.dto';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ import {
NotFoundException,
} from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Brackets, DataSource, In, Repository, SelectQueryBuilder } from 'typeorm';
import {
Brackets,
DataSource,
In,
Repository,
SelectQueryBuilder,
} from 'typeorm';
import { CreateApplicationDto } from './dto/request/create-application.dto';
import { ReadApplicationDto } from './dto/response/read-application.dto';
import { Permit } from '../permit/entities/permit.entity';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { ApiProperty } from '@nestjs/swagger';
import {
ArrayMinSize,
IsInt,
IsPositive,
} from 'class-validator';
import { ArrayMinSize, IsInt, IsPositive } from 'class-validator';

export class CreatePermitLoaDto {
@ApiProperty({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,8 @@ export class ApplicationProfile extends AutomapperProfile {
forMember(
(d) => d.loa.expiryDate,
mapFrom((s) => {
if (s.loa.expiryDate) return dayjs(s.loa.expiryDate).format('YYYY-MM-DD');
if (s.loa.expiryDate)
return dayjs(s.loa.expiryDate).format('YYYY-MM-DD');
}),
),
forMember(
Expand Down
1 change: 0 additions & 1 deletion vehicles/src/modules/special-auth/profile/loa.profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ export class LoaProfile extends AutomapperProfile {
}),
),
);

};
}
}

0 comments on commit 5588d70

Please sign in to comment.