diff --git a/src/subdomains/core/buy-crypto/process/services/buy-crypto.service.ts b/src/subdomains/core/buy-crypto/process/services/buy-crypto.service.ts index f3d499bb3f..78fcdf71df 100644 --- a/src/subdomains/core/buy-crypto/process/services/buy-crypto.service.ts +++ b/src/subdomains/core/buy-crypto/process/services/buy-crypto.service.ts @@ -342,7 +342,18 @@ export class BuyCryptoService implements OnModuleInit { (entity.amlCheck === CheckStatus.FAIL && dto.amlCheck === CheckStatus.GSHEET)) && !entity.isComplete && (update?.amlCheck !== entity.amlCheck || update.amlReason !== entity.amlReason) - ? { amlCheck: update.amlCheck, mailSendDate: null, amlReason: update.amlReason, comment: update.comment } + ? { + amlCheck: update.amlCheck, + mailSendDate: null, + amlReason: update.amlReason, + comment: update.comment, + ...(update.amlCheck === CheckStatus.PASS + ? { + priceDefinitionAllowedDate: + update.priceDefinitionAllowedDate ?? entity.priceDefinitionAllowedDate ?? new Date(), + } + : undefined), + } : undefined), isComplete: dto.isComplete, }; diff --git a/src/subdomains/core/sell-crypto/process/services/buy-fiat.service.ts b/src/subdomains/core/sell-crypto/process/services/buy-fiat.service.ts index 1e15117823..a710a87dde 100644 --- a/src/subdomains/core/sell-crypto/process/services/buy-fiat.service.ts +++ b/src/subdomains/core/sell-crypto/process/services/buy-fiat.service.ts @@ -208,7 +208,17 @@ export class BuyFiatService implements OnModuleInit { (entity.amlCheck === CheckStatus.FAIL && dto.amlCheck === CheckStatus.GSHEET)) && !entity.isComplete && (update?.amlCheck !== entity.amlCheck || update.amlReason !== entity.amlReason) - ? { amlCheck: update.amlCheck, mailSendDate: null, amlReason: update.amlReason } + ? { + amlCheck: update.amlCheck, + mailSendDate: null, + amlReason: update.amlReason, + ...(update.amlCheck === CheckStatus.PASS + ? { + priceDefinitionAllowedDate: + update.priceDefinitionAllowedDate ?? entity.priceDefinitionAllowedDate ?? new Date(), + } + : undefined), + } : undefined), isComplete: dto.isComplete, comment: update.comment,