Skip to content

Commit

Permalink
Strip subject parsed from FS API
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Oct 11, 2024
1 parent abfe888 commit e4e5e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/fs/message_draft.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def self.create_and_validate_with_fs_form(form_files: [], author:, fs_client: Fs
form_files.each do |form_file|
form_content = form_file.read.force_encoding("UTF-8")
form_information = fs_client.api.parse_form(form_content)
dic = form_information['subject']
dic = form_information['subject']&.strip
fs_form_identifier = form_information['form_identifier']

box = Fs::Box.with_enabled_message_drafts_import.find_by("settings ->> 'dic' = ?", dic)
Expand Down

0 comments on commit e4e5e16

Please sign in to comment.