Commit e3e24717 by Ivan Lan

Delete all chunk_file when they merged

parent c1056400
......@@ -58,7 +58,10 @@ module Whaleback
file.write(@file&.read)
end
finish_loading
merge_file if all_finish?
if all_finish?
merge_file
all_suicide
end
end
def merge_file
......@@ -79,6 +82,10 @@ module Whaleback
creator: @creator
)
end
def all_suicide
ChunkFile.where(identifier: identifier).destroy_all
end
# 可覆盖,Obj class 继承有 STI type 问题,也可以细化分类
def assign_media_class mime_type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment