Fix find for direct persons (#8632)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2025-04-18 16:35:33 +04:00
committed by GitHub
parent 590ac43d59
commit eb86e24cb2
+1 -1
View File
@@ -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