|
|
@@ -633,9 +633,10 @@ const system = { |
|
|
|
onProgressHandler(progressData); |
|
|
|
if(process !== 100 || !hash) return; |
|
|
|
socket.close(); |
|
|
|
const copyFile = firstCharToUpperCase({ ...file, ipfsCid: hash, size: +size, ModifyUserId: sessionStorage.userId, |
|
|
|
historyCurrentIpfsCid: isConflict ? hash : commitHistoryHash, |
|
|
|
historyPreIpfsCid |
|
|
|
const copyFile = firstCharToUpperCase({ ...file, size: +size, ModifyUserId: sessionStorage.userId, |
|
|
|
historyCurrentIpfsCid: commitHistoryHash, |
|
|
|
ipfsCid: isConflict ? file.ipfsCid : hash, |
|
|
|
historyPreIpfsCid, |
|
|
|
}); |
|
|
|
|
|
|
|
const res = await fetchApi('file/updateFile', copyFile); |
|
|
|