File tree Expand file tree Collapse file tree 3 files changed +21
-21
lines changed
backend/services/libs/shared/src Expand file tree Collapse file tree 3 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,12 @@ export class OrganisationUpdateDto {
6464 @ApiProperty ( )
6565 paymentId : string ;
6666
67- @ValidateIf (
68- ( c ) =>
69- ! [ CompanyRole . DESIGNATED_NATIONAL_AUTHORITY , CompanyRole . API ] . includes (
70- c . companyRole
71- )
72- )
67+ // @ValidateIf (
68+ // (c) =>
69+ // ![CompanyRole.DESIGNATED_NATIONAL_AUTHORITY, CompanyRole.API].includes(
70+ // c.companyRole
71+ // )
72+ // )
7373 @IsUrl ( )
7474 @IsOptional ( )
7575 @ApiPropertyOptional ( )
@@ -80,12 +80,12 @@ export class OrganisationUpdateDto {
8080 @MaxLength ( 1048576 , { message : "Logo cannot exceed 1MB" } )
8181 logo : string ;
8282
83- @ValidateIf (
84- ( c ) =>
85- ! [ CompanyRole . DESIGNATED_NATIONAL_AUTHORITY , CompanyRole . API ] . includes (
86- c . companyRole
87- )
88- )
83+ // @ValidateIf (
84+ // (c) =>
85+ // ![CompanyRole.DESIGNATED_NATIONAL_AUTHORITY, CompanyRole.API].includes(
86+ // c.companyRole
87+ // )
88+ // )
8989 @IsString ( )
9090 @ApiPropertyOptional ( )
9191 @IsPhoneNumber ( null )
@@ -97,12 +97,12 @@ export class OrganisationUpdateDto {
9797 @IsPhoneNumber ( null )
9898 faxNo : string ;
9999
100- @ValidateIf (
101- ( c ) =>
102- ! [ CompanyRole . DESIGNATED_NATIONAL_AUTHORITY , CompanyRole . API ] . includes (
103- c . companyRole
104- )
105- )
100+ // @ValidateIf (
101+ // (c) =>
102+ // ![CompanyRole.DESIGNATED_NATIONAL_AUTHORITY, CompanyRole.API].includes(
103+ // c.companyRole
104+ // )
105+ // )
106106 @IsString ( )
107107 @ApiProperty ( )
108108 @IsNotEmpty ( )
Original file line number Diff line number Diff line change @@ -213,6 +213,9 @@ export const handler: Handler = async (event) => {
213213 company . taxId = `00000${ event [ "systemCountryCode" ] } ` ;
214214 company . govDep = GovDepartment [ event [ "Department" ] ] ;
215215 company . ministry = mapEnvironmentToEnum ( event [ "Ministry" ] , Ministry ) ;
216+ company . address = event [ "address" ]
217+ company . phoneNo = event [ "phoneno" ]
218+ company . website = event [ "website" ]
216219
217220 const user = new UserDto ( ) ;
218221 user . email = event [ "rootEmail" ] ;
Original file line number Diff line number Diff line change @@ -516,11 +516,8 @@ export class HelperService {
516516 const payload = match [ 2 ] ;
517517 // Validate base64 payload
518518 try {
519- const isBase64 = this . isBase64 ( payload ) ;
520- console . log ( "isBase64" , isBase64 ) ;
521519 return this . isBase64 ( payload ) ;
522520 } catch {
523- console . log ( "Invalid base64 payload" ) ;
524521 return false ;
525522 }
526523 }
You can’t perform that action at this time.
0 commit comments