mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-09 11:17:43 +02:00
UBERF-8425: Global accounts (#7573)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { Account, Ref } from '@hcengineering/core'
|
||||
import type { PersonId } from '@hcengineering/core'
|
||||
import type { Collection, FindCursor } from 'mongodb'
|
||||
import type { GithubUserRecord } from './types'
|
||||
|
||||
@@ -31,7 +31,7 @@ export class UserManager {
|
||||
return res
|
||||
}
|
||||
|
||||
async getAccountByRef (workspace: string, ref: Ref<Account>): Promise<GithubUserRecord | undefined> {
|
||||
async getAccountByRef (workspace: string, ref: PersonId): Promise<GithubUserRecord | undefined> {
|
||||
const key = `${workspace}.${ref}`
|
||||
let rec = this.refUserCache.get(key)
|
||||
if (rec !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user