Skip to content

Commit

Permalink
refact: relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Jun 10, 2024
1 parent 2b438f6 commit 2e55d78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion graphql/schemas/ActionEngine/task.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/Domains/ActionEngine/Tasks/Models/TaskListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 2e55d78

Please sign in to comment.