Permalink
Browse files

Remove GroupActionLogger calls

  • Loading branch information...
joebuhlig committed Jul 1, 2017
1 parent 4e46cd6 commit 9ba04b9911f0db41b9f6b5249c362e64749bd21c
@@ -40,7 +40,6 @@ def submit_payment
group = Group.find(product[0][:group].to_i)
if !group.users.include?(current_user)
group.add(current_user)
GroupActionLogger.new(current_user, group).log_add_user_to_group(current_user)
else
return render_json_error I18n.t('groups.errors.member_already_exist', username: current_user.username)
end
@@ -101,12 +100,11 @@ def paypal_success

# league_gateway.store_transaction(response.authorization, product[0][:initial_payment].to_i, Time.now())
end
byebug

if response.success?
group = Group.find(product[0][:group].to_i)
if !group.users.include?(current_user)
group.add(current_user)
GroupActionLogger.new(current_user, group).log_add_user_to_group(current_user)
else
return render_json_error I18n.t('groups.errors.member_already_exist', username: current_user.username)
end
@@ -43,7 +43,6 @@ def cancel
group = Group.find(level[0][:group].to_i)
if group.users.include?(current_user)
group.remove(current_user)
GroupActionLogger.new(current_user, group).log_remove_user_from_group(current_user)
end

if group.save
@@ -60,7 +60,6 @@ def execute(args)
group = Group.find(level[0][:group].to_i)
if group.users.include?(user)
group.remove(user)
GroupActionLogger.new(user, group).log_remove_user_from_group(user)
end

if group.save
@@ -100,7 +99,6 @@ def execute(args)
group = Group.find(level[0][:group].to_i)
if group.users.include?(user)
group.remove(user)
GroupActionLogger.new(user, group).log_remove_user_from_group(user)
end

if group.save

0 comments on commit 9ba04b9

Please sign in to comment.