mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-22 13:42:33 +01:00
add check before deleting file
This commit is contained in:
parent
2fab8d1b4a
commit
5faa4fb181
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class Order < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def delete_message_file
|
||||
File.delete(self.message_path)
|
||||
File.delete(self.message_path) if File.file?(self.message_path)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue