Fix the build.

This commit is contained in:
Arpit Jalan 2019-06-12 16:44:17 +05:30
parent 7b66f8fb46
commit 36e53db300

View File

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