From 2f1a277e9fb6e6b8880be6f56c6b6761e165a55f Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Wed, 27 Sep 2023 13:39:28 +0500 Subject: [PATCH] UBER-914: map to mixin after findAll (#3745) Signed-off-by: Vyacheslav Tumanov --- server-plugins/notification/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-plugins/notification/src/index.ts b/server-plugins/notification/src/index.ts index b1062965ff..221d397544 100644 --- a/server-plugins/notification/src/index.ts +++ b/server-plugins/notification/src/index.ts @@ -76,7 +76,7 @@ export async function getEmployee (employee: Ref, control: TriggerCont { limit: 1 } ) )[0] - return account + return account !== undefined ? control.hierarchy.as(account, contact.mixin.Employee) : undefined } /**