Skip to content

Commit ea52b73

Browse files
committed
Make identity optional to bypass bandada
1 parent c117948 commit ea52b73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/user/dto/ConnectFlowDTOs.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IsDefined, IsEthereumAddress } from 'class-validator';
1+
import { IsDefined, IsEthereumAddress, IsOptional } from 'class-validator';
22

33
export class StoreBadgesAndIdentityDTO {
44
@IsEthereumAddress()
@@ -8,7 +8,7 @@ export class StoreBadgesAndIdentityDTO {
88
@IsDefined()
99
signature: string;
1010

11-
@IsDefined()
11+
@IsOptional()
1212
identity: string;
1313
}
1414

@@ -22,7 +22,7 @@ export class StoreBadgesDTO {
2222
}
2323

2424
export class StoreIdentityDTO {
25-
@IsDefined()
25+
@IsOptional()
2626
identity: string;
2727
}
2828
export class GetBadgesDTO {

src/user/users.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class UsersController {
7070
id: userId,
7171
},
7272
data: {
73-
identity,
73+
identity: identity || '{}',
7474
badges: badges || {},
7575
opAddress: mainAddress,
7676
},

0 commit comments

Comments
 (0)