mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-27 19:00:02 +00:00
Fix find for direct persons (#8632)
Some checks failed
CI / uitest (push) Has been cancelled
CI / build (push) Has been cancelled
CI / uitest-pg (push) Has been cancelled
CI / uitest-qms (push) Has been cancelled
CI / uitest-workspaces (push) Has been cancelled
CI / formatting (push) Has been cancelled
CI / test (push) Has been cancelled
CI / svelte-check (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / dist-build (push) Has been cancelled
Some checks failed
CI / uitest (push) Has been cancelled
CI / build (push) Has been cancelled
CI / uitest-pg (push) Has been cancelled
CI / uitest-qms (push) Has been cancelled
CI / uitest-workspaces (push) Has been cancelled
CI / formatting (push) Has been cancelled
CI / test (push) Has been cancelled
CI / svelte-check (push) Has been cancelled
CI / docker-build (push) Has been cancelled
CI / dist-build (push) Has been cancelled
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
590ac43d59
commit
eb86e24cb2
@ -91,7 +91,7 @@ export async function buildDmName (client: Client, accounts: AccountUuid[]): Pro
|
||||
let myName = ''
|
||||
|
||||
for (const acc of accounts) {
|
||||
const employee = employeeByAccount.get(acc)
|
||||
const employee = employeeByAccount.get(acc) ?? (await client.findOne(contact.class.Person, { personUuid: acc }))
|
||||
|
||||
if (employee === undefined) {
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user