mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-28 19:25:36 +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 = ''
|
let myName = ''
|
||||||
|
|
||||||
for (const acc of accounts) {
|
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) {
|
if (employee === undefined) {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user