aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request_batch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/info_request_batch.rb')
-rw-r--r--app/models/info_request_batch.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/info_request_batch.rb b/app/models/info_request_batch.rb
index 745cfe7d2..7e7390736 100644
--- a/app/models/info_request_batch.rb
+++ b/app/models/info_request_batch.rb
@@ -42,9 +42,12 @@ class InfoRequestBatch < ActiveRecord::Base
unrequestable << public_body
end
end
+ self.sent_at = Time.now
+ self.save!
end
created.each{ |info_request| info_request.outgoing_messages.first.send_message }
- return {:unrequestable => unrequestable}
+
+ return unrequestable
end
# Create and send an FOI request to a public body