UBERF-8261: Fix backup service (#6725)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-09-25 21:18:49 +07:00
committed by GitHub
parent 9ab1cab4bd
commit d6c7d7c9fe
16 changed files with 268 additions and 83 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import config from './config'
/**
* @public
*/
export async function getWorkspaceInfo (token: string): Promise<ClientWorkspaceInfo> {
export async function getWorkspaceInfo (token: string, updateLastModified = false): Promise<ClientWorkspaceInfo> {
const accountsUrl = config.AccountsURL
const workspaceInfo = await (
await fetch(accountsUrl, {
@@ -15,7 +15,7 @@ export async function getWorkspaceInfo (token: string): Promise<ClientWorkspaceI
},
body: JSON.stringify({
method: 'getWorkspaceInfo',
params: []
params: updateLastModified ? [true] : []
})
})
).json()
+1 -1
View File
@@ -692,7 +692,7 @@ export class PlatformWorker {
)
let workspaceInfo: ClientWorkspaceInfo | undefined
try {
workspaceInfo = await getWorkspaceInfo(token)
workspaceInfo = await getWorkspaceInfo(token, true)
} catch (err: any) {
this.ctx.error('Workspace not found:', { workspace })
errors++