Fix backup-all script (#8255)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-03-18 00:38:12 +07:00
committed by GitHub
parent 2ff661d172
commit d3ffb3c2fd
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -1010,7 +1010,9 @@ export function devTool (
const skipWorkspaces = new Set(cmd.skip.split(',').map((it) => it.trim()))
const token = generateToken(systemAccountUuid, '' as WorkspaceUuid)
const token = generateToken(systemAccountUuid, '' as WorkspaceUuid, {
service: 'tool'
})
const workspaces = (await getAccountClient(token).listWorkspaces(cmd.region))
.sort((a, b) => {
const bsize = b.backupInfo?.backupSize ?? 0