diff --git a/graphql/schemas/ActionEngine/task.graphql b/graphql/schemas/ActionEngine/task.graphql index d6bf622da..eec8fe747 100644 --- a/graphql/schemas/ActionEngine/task.graphql +++ b/graphql/schemas/ActionEngine/task.graphql @@ -19,7 +19,7 @@ type TaskListItem { type LeadTaskEngagementItem { name: String! - company_action: CompanyAction! @belongsTo + company_action: CompanyAction! @belongsTo(relation: "companyAction") status: String config: Mixed engagement_start: Engagement @hasOne(relation: "engagementStart") diff --git a/src/Domains/ActionEngine/Tasks/Models/TaskListItem.php b/src/Domains/ActionEngine/Tasks/Models/TaskListItem.php index 711860b58..20149b039 100644 --- a/src/Domains/ActionEngine/Tasks/Models/TaskListItem.php +++ b/src/Domains/ActionEngine/Tasks/Models/TaskListItem.php @@ -39,7 +39,7 @@ public function task(): BelongsTo return $this->belongsTo(TaskList::class, 'task_list_id'); } - public function action(): BelongsTo + public function companyAction(): BelongsTo { return $this->belongsTo(CompanyAction::class, 'companies_action_id'); }