mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-16 21:35:10 +00:00
UBERF-7698: Fix backup (#6168)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
37abcf59a3
commit
9fb19e3e26
@ -28,7 +28,7 @@ export class BackupClientSession extends ClientSession implements BackupSession
|
|||||||
async loadChunk (_ctx: ClientSessionCtx, domain: Domain, idx?: number, recheck?: boolean): Promise<void> {
|
async loadChunk (_ctx: ClientSessionCtx, domain: Domain, idx?: number, recheck?: boolean): Promise<void> {
|
||||||
this.lastRequest = Date.now()
|
this.lastRequest = Date.now()
|
||||||
try {
|
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)
|
await _ctx.sendResponse(result)
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
await _ctx.sendResponse({ error: err.message })
|
await _ctx.sendResponse({ error: err.message })
|
||||||
|
Loading…
Reference in New Issue
Block a user