Promo code email

Removed one time validation

Change-Id: Ia3d377c894f2ff0d8e1d19dfb378c7795f3bab16
This commit is contained in:
smarcet 2019-09-12 17:28:37 -03:00
parent d65b404d60
commit 66af7dc25c

View File

@ -231,9 +231,6 @@ final class SummitPromoCodeService
if(is_null($promo_code))
throw new EntityNotFoundException(trans('not_found_errors.promo_code_email_code_not_found', [ 'promo_code_id' => $promo_code_id, 'summit_id' => $summit->getId()]));
if ($promo_code->isEmailSent())
throw new ValidationException(trans('validation_errors.promo_code_email_send_already_sent'));
$name = null;
$email = null;
@ -246,7 +243,7 @@ final class SummitPromoCodeService
$email = $promo_code->getEmail();
}
if(empty($name)){
if(empty($email)){
throw new ValidationException(trans("validation_errors.promo_code_email_send_empty_email"));
}