Fix Sentry 238
This commit is contained in:
parent
42c3bd5db0
commit
b3c0a261d7
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ class ProcedureLogoUploader < BaseUploader
|
||||||
if file.present?
|
if file.present?
|
||||||
if original_filename.present? || model.logo_secure_token
|
if original_filename.present? || model.logo_secure_token
|
||||||
if Flipflop.remote_storage?
|
if Flipflop.remote_storage?
|
||||||
filename = "#{model.class.to_s.underscore}-#{secure_token}.#{file.extension.downcase}"
|
filename = "#{model.class.to_s.underscore}-#{secure_token}.#{file.extension&.downcase}"
|
||||||
else
|
else
|
||||||
filename = "logo-#{secure_token}.#{file.extension.downcase}"
|
filename = "logo-#{secure_token}.#{file.extension&.downcase}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
filename
|
filename
|
||||||
|
|
Loading…
Reference in a new issue