fix: empty workspace uuid when generating token (#9252)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2025-06-16 16:13:25 +07:00
committed by GitHub
parent a432281513
commit 05bb73e3f6
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ export async function performGithubAccountMigrations (
txes: Tx[],
region: string | null
): Promise<void> {
const token = generateToken(systemAccountUuid, '' as WorkspaceUuid, { service: 'admin', admin: 'true' })
const githubToken = generateToken(systemAccountUuid, '' as WorkspaceUuid, { service: 'github' })
const token = generateToken(systemAccountUuid, undefined, { service: 'admin', admin: 'true' })
const githubToken = generateToken(systemAccountUuid, undefined, { service: 'github' })
const accountClient = getAccountClient(token)
const githubAccountClient = getAccountClient(githubToken)