|
@@ -81,7 +81,7 @@ export class KycService extends BaseService {
|
|
if (!orderNo || !order) {
|
|
if (!orderNo || !order) {
|
|
throw new CoolCommException('Order does not exist');
|
|
throw new CoolCommException('Order does not exist');
|
|
}
|
|
}
|
|
- const kyc = await this.kycEntity.findOneBy({ email: payload.email });
|
|
|
|
|
|
+ const kyc = await this.kycEntity.findOneBy({ email: payload.customerEmail });
|
|
if(kyc) {
|
|
if(kyc) {
|
|
throw new CoolCommException('This email has already been used');
|
|
throw new CoolCommException('This email has already been used');
|
|
}
|
|
}
|
|
@@ -94,7 +94,7 @@ export class KycService extends BaseService {
|
|
kycUserId: payload.outUserId,
|
|
kycUserId: payload.outUserId,
|
|
customerId: customerId,
|
|
customerId: customerId,
|
|
level: '1',
|
|
level: '1',
|
|
- email: payload.email,
|
|
|
|
|
|
+ email: payload.customerEmail,
|
|
country: payload.countryCode
|
|
country: payload.countryCode
|
|
})
|
|
})
|
|
return { customerId }
|
|
return { customerId }
|