Skip to content

Commit

Permalink
Update Fs::DownloadSentMessageJob
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Oct 24, 2024
1 parent 50ca8c5 commit 6dbbe2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/fs/download_sent_message_job.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Fs
class DownloadSentMessageJob < ApplicationJob
def perform(fs_message_id, box:, fs_client: FsEnvironment.fs_client)
return if box.messages.where.not(type: 'Fs::MessageDraft').where("metadata ->> 'fs_message_id' = ?", fs_message_id).any?
return if box.messages.where(type: [nil, 'Message']).where("metadata ->> 'fs_message_id' = ?", fs_message_id).any?

fs_api = fs_client.api(api_connection: box.api_connection, box: box)

Expand Down

0 comments on commit 6dbbe2c

Please sign in to comment.