mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
Fix the build.
This commit is contained in:
parent
7b66f8fb46
commit
36e53db300
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user