mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 04:08:19 +00:00
UBER-914: map to mixin after findAll (#3745)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
78e2393af2
commit
2f1a277e9f
@ -76,7 +76,7 @@ export async function getEmployee (employee: Ref<Employee>, control: TriggerCont
|
|||||||
{ limit: 1 }
|
{ limit: 1 }
|
||||||
)
|
)
|
||||||
)[0]
|
)[0]
|
||||||
return account
|
return account !== undefined ? control.hierarchy.as(account, contact.mixin.Employee) : undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user