fix(leads): keep a future follow-up as an activity on the lead

A scheduled follow-up only stored a date, and activities opened from a lead were not linked back, so they disappeared from the lead.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-03 16:19:32 +03:30
co-authored by Cursor
parent c26353624e
commit c337b0b4c7
6 changed files with 89 additions and 20 deletions
+3
View File
@@ -1982,6 +1982,8 @@ export interface CreateActivityRequest {
personId?: string | null;
companyId?: string | null;
dealId?: string | null;
/** لید مرتبط؛ فعالیت در پروندهٔ همان لید می‌ماند */
leadId?: string | null;
/** سازگاری — اگر assigneeIds نباشد از این استفاده می‌شود */
assigneeId?: string | null;
/** چند مسئول؛ اولی به‌عنوان assigneeId ذخیره می‌شود */
@@ -2007,6 +2009,7 @@ export interface UpdateActivityRequest {
personId?: string | null;
companyId?: string | null;
dealId?: string | null;
leadId?: string | null;
assigneeId?: string | null;
assigneeIds?: string[];
}