Skip to content

Commit

Permalink
refactor: refactor legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan Le committed Dec 19, 2023
1 parent 8ae5a7d commit b7fad62
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/api/chemotion/chem_spectra_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,15 @@ def raw_file(att)
att = Attachment.new(
bucket: container_id,
filename: combined_image_filename,
key: SecureRandom.uuid,
created_by: current_user.id,
created_for: current_user.id,
content_type: 'image/png',
file_path: image.path,
attachable_type: 'Container',
attachable_id: container_id,
storage: Rails.configuration.storage.primary_store,
)
att.save!
else
att.update!(
storage: Rails.configuration.storage.primary_store,
file_path: image.path,
attachable_type: 'Container',
attachable_id: container_id,
Expand Down

0 comments on commit b7fad62

Please sign in to comment.