UBERF-7698: Fix backup

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2024-07-29 16:42:49 +07:00
parent ebf851d399
commit cd868b8db8
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2

View File

@ -28,7 +28,7 @@ export class BackupClientSession extends ClientSession implements BackupSession
async loadChunk (_ctx: ClientSessionCtx, domain: Domain, idx?: number, recheck?: boolean): Promise<void> {
this.lastRequest = Date.now()
try {
const result = await this.ops.loadChunk(_ctx.ctx, domain)
const result = await this.ops.loadChunk(_ctx.ctx, domain, idx, recheck)
await _ctx.sendResponse(result)
} catch (err: any) {
await _ctx.sendResponse({ error: err.message })