Fix Rubocop linting issues
This commit is contained in:
parent
7bc0842d26
commit
5b193919dc
3 changed files with 8 additions and 7 deletions
11
app/helpers/external/mailbluster_helper.rb
vendored
11
app/helpers/external/mailbluster_helper.rb
vendored
|
|
@ -1,4 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'httparty'
|
||||
|
||||
module External
|
||||
|
|
@ -12,10 +13,10 @@ module External
|
|||
def create_lead(user)
|
||||
options = {
|
||||
headers: {
|
||||
'Content-Type' => 'application/json',
|
||||
'Content-Type' => 'application/json',
|
||||
'Authorization' => ENV['MAILBLUSTER_API_KEY']
|
||||
},
|
||||
body: {
|
||||
body: {
|
||||
'email' => user.email,
|
||||
'firstName' => user.name,
|
||||
'overrideExisting' => true,
|
||||
|
|
@ -32,10 +33,10 @@ module External
|
|||
def edit_lead(user, add_tags: [], remove_tags: [], old_email: nil)
|
||||
options = {
|
||||
headers: {
|
||||
'Content-Type' => 'application/json',
|
||||
'Content-Type' => 'application/json',
|
||||
'Authorization' => ENV['MAILBLUSTER_API_KEY']
|
||||
},
|
||||
body: {
|
||||
body: {
|
||||
'email' => user.email,
|
||||
'firstName' => user.name,
|
||||
'overrideExisting' => true,
|
||||
|
|
@ -52,7 +53,7 @@ module External
|
|||
email_hash = Digest::MD5.hexdigest user.email
|
||||
options = {
|
||||
headers: {
|
||||
'Content-Type' => 'application/json',
|
||||
'Content-Type' => 'application/json',
|
||||
'Authorization' => ENV['MAILBLUSTER_API_KEY']
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -363,7 +363,7 @@ class User < ApplicationRecord
|
|||
User.count == 1 && User.first.email == 'deleted@localhost.osem'
|
||||
end
|
||||
|
||||
# TODO email_hash function for mailbluster
|
||||
# TODO: email_hash function for mailbluster
|
||||
# def email_hash
|
||||
# Digest::MD5.hexdigest user.email
|
||||
# end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue