From 36e53db300f2182e2d8e50bcbdea8f3c124aebac Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 12 Jun 2019 16:44:17 +0530 Subject: [PATCH] Fix the build. --- app/controllers/invites_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/invites_controller.rb b/app/controllers/invites_controller.rb index c01eaf762c..d569359b54 100644 --- a/app/controllers/invites_controller.rb +++ b/app/controllers/invites_controller.rb @@ -181,7 +181,7 @@ class InvitesController < ApplicationController max_bulk_invites = SiteSetting.max_bulk_invites CSV.foreach(file.tempfile) do |row| count += 1 - invites.push({ email: row[0], groups: row[1], topic_id: row[2] }) if row[0].present? + invites.push(email: row[0], groups: row[1], topic_id: row[2]) if row[0].present? break if count >= max_bulk_invites end