Fix Rubocop linting issues

This commit is contained in:
CactusPuppy 2021-03-23 13:05:45 -07:00
parent 7bc0842d26
commit 5b193919dc
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
3 changed files with 8 additions and 7 deletions

View file

@ -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']
}
}

View file

@ -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