mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
fix: use proper blob size in backup (#7032)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
2390b0d761
commit
54f3376438
@ -1840,7 +1840,7 @@ export async function restore (
|
||||
if (Number.isNaN(sz) || sz !== bf.length) {
|
||||
sz = bf.length
|
||||
}
|
||||
void blobClient.upload(ctx, doc._id, doc.size, doc.contentType, bf).then(() => {
|
||||
void blobClient.upload(ctx, doc._id, sz, doc.contentType, bf).then(() => {
|
||||
void sendChunk(doc, bf.length).finally(() => {
|
||||
requiredDocs.delete(doc._id)
|
||||
printUploaded('upload', bf.length)
|
||||
|
Loading…
Reference in New Issue
Block a user