Fix sending mails after photo export

This commit is contained in:
Benjamin Neff 2022-07-10 17:38:09 +02:00
parent 41633fcea9
commit f76a8d7deb
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -4,7 +4,6 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
module Workers module Workers
class ExportPhotos < Base class ExportPhotos < Base
sidekiq_options queue: :low sidekiq_options queue: :low
@ -14,9 +13,9 @@ module Workers
@user.perform_export_photos! @user.perform_export_photos!
if @user.reload.exported_photos_file.present? if @user.reload.exported_photos_file.present?
ExportMailer.export_photos_complete_for(@user) ExportMailer.export_photos_complete_for(@user).deliver_now
else else
ExportMailer.export_photos_failure_for(@user) ExportMailer.export_photos_failure_for(@user).deliver_now
end end
end end
end end