UBERF-8425: Global accounts (#7573)

This commit is contained in:
Alexey Zinoviev
2025-02-04 10:31:03 +07:00
committed by GitHub
parent 83e5b16392
commit 2c64ceadb8
765 changed files with 19134 additions and 17955 deletions
@@ -4,14 +4,14 @@
//
import { CollaboratorClient, getClient as getCollaboratorClient } from '@hcengineering/collaborator-client'
import { systemAccountEmail, WorkspaceId } from '@hcengineering/core'
import { systemAccountUuid, WorkspaceUuid } from '@hcengineering/core'
import { generateToken } from '@hcengineering/server-token'
import config from './config'
/**
* @public
*/
export function createCollaboratorClient (workspaceId: WorkspaceId): CollaboratorClient {
const token = generateToken(systemAccountEmail, workspaceId, { mode: 'github' })
export function createCollaboratorClient (workspaceId: WorkspaceUuid): CollaboratorClient {
const token = generateToken(systemAccountUuid, workspaceId, { service: 'github', mode: 'github' })
return getCollaboratorClient(workspaceId, token, config.CollaboratorURL)
}