fix blocked user
This commit is contained in:
parent
2d492226e3
commit
421e8384af
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ module Manager
|
||||||
@user = User.find(params[:id])
|
@user = User.find(params[:id])
|
||||||
|
|
||||||
transactionnal_api = ::SibApiV3Sdk::TransactionalEmailsApi.new
|
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
|
rescue ::SibApiV3Sdk::ApiError => e
|
||||||
flash.alert = "Impossible de débloquer cet email auprès de Sendinblue : #{e.message}"
|
flash.alert = "Impossible de débloquer cet email auprès de Sendinblue : #{e.message}"
|
||||||
|
|
Loading…
Reference in a new issue