mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-06 15:57:05 +00: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) {
|
if (Number.isNaN(sz) || sz !== bf.length) {
|
||||||
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(() => {
|
void sendChunk(doc, bf.length).finally(() => {
|
||||||
requiredDocs.delete(doc._id)
|
requiredDocs.delete(doc._id)
|
||||||
printUploaded('upload', bf.length)
|
printUploaded('upload', bf.length)
|
||||||
|
Loading…
Reference in New Issue
Block a user