mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-24 04:17:50 +00:00
Fix for remove from non default stores (#6861)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
65d45d7e82
commit
02c6f895cd
@ -177,10 +177,8 @@ async function processAdapter (
|
||||
if (aggrBlob === undefined || aggrBlob?.provider !== targetBlob.provider) {
|
||||
targetBlob = await exAdapter.syncBlobFromStorage(ctx, workspaceId, targetBlob._id, exAdapter.defaultAdapter)
|
||||
}
|
||||
if (targetBlob.size === data.size) {
|
||||
// We could safely delete source blob
|
||||
toRemove.push(data._id)
|
||||
}
|
||||
// We could safely delete source blob
|
||||
toRemove.push(data._id)
|
||||
}
|
||||
|
||||
if (targetBlob === undefined) {
|
||||
@ -211,7 +209,7 @@ async function processAdapter (
|
||||
}
|
||||
})
|
||||
|
||||
if (targetBlob !== undefined && targetBlob.size === sourceBlob.size) {
|
||||
if (targetBlob !== undefined) {
|
||||
// We could safely delete source blob
|
||||
toRemove.push(sourceBlob._id)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user