mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 05:25:00 +02:00
Fix find for direct persons (#8632)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user