From 2bbf7fb2edd46f412b960722c950c07797164155 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 20 Dec 2021 17:19:13 +0700 Subject: [PATCH] Fix Lead opening issue (#685) Signed-off-by: Andrey Sobolev --- models/lead/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/lead/src/index.ts b/models/lead/src/index.ts index 23d04b1862..952fdacbb5 100644 --- a/models/lead/src/index.ts +++ b/models/lead/src/index.ts @@ -15,7 +15,7 @@ // // To help typescript locate view plugin properly -import type { Contact } from '@anticrm/contact' +import type { Contact, Employee } from '@anticrm/contact' import type { Doc, FindOptions, Ref } from '@anticrm/core' import type { Funnel, Lead } from '@anticrm/lead' import { createKanban } from '@anticrm/lead' @@ -49,6 +49,9 @@ export class TLead extends TTask implements Lead { @Prop(Collection(attachment.class.Attachment), 'Attachments' as IntlString) attachments?: number + + @Prop(TypeRef(contact.class.Employee), 'Assignee' as IntlString) + declare assignee: Ref | null } export function createModel (builder: Builder): void {