Skip to content

Commit

Permalink
UBER-914: map to mixin after findAll (#3745)
Browse files Browse the repository at this point in the history
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
  • Loading branch information
ThetaDR authored Sep 27, 2023
1 parent 78e2393 commit 2f1a277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server-plugins/notification/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export async function getEmployee (employee: Ref<Employee>, control: TriggerCont
{ limit: 1 }
)
)[0]
return account
return account !== undefined ? control.hierarchy.as(account, contact.mixin.Employee) : undefined
}

/**
Expand Down

0 comments on commit 2f1a277

Please sign in to comment.