fix blocked user

This commit is contained in:
clemkeirua 2020-10-13 17:36:36 +02:00
parent 2d492226e3
commit 421e8384af

View file

@ -63,7 +63,7 @@ module Manager
@user = User.find(params[:id])
transactionnal_api = ::SibApiV3Sdk::TransactionalEmailsApi.new
transactionnal_api.smtp_blocked_contacts_email_delete(@user)
transactionnal_api.smtp_blocked_contacts_email_delete(@user.email)
rescue ::SibApiV3Sdk::ApiError => e
flash.alert = "Impossible de débloquer cet email auprès de Sendinblue : #{e.message}"