| @@ 52-59 (lines=8) @@ | ||
| 49 | ); |
|
| 50 | $assigneeId = null; |
|
| 51 | $creatorId = null; |
|
| 52 | foreach ($organization->organizationMembers() as $organizationMember) { |
|
| 53 | if ($organizationMember->id()->equals($this->task->assigneeId())) { |
|
| 54 | $assigneeId = $organizationMember->userId()->id(); |
|
| 55 | } |
|
| 56 | if ($organizationMember->id()->equals($this->task->creatorId())) { |
|
| 57 | $creatorId = $organizationMember->userId()->id(); |
|
| 58 | } |
|
| 59 | } |
|
| 60 | foreach ($organization->owners() as $owner) { |
|
| 61 | if ($owner->id()->equals($this->task->assigneeId())) { |
|
| 62 | $assigneeId = $owner->userId()->id(); |
|
| @@ 60-67 (lines=8) @@ | ||
| 57 | $creatorId = $organizationMember->userId()->id(); |
|
| 58 | } |
|
| 59 | } |
|
| 60 | foreach ($organization->owners() as $owner) { |
|
| 61 | if ($owner->id()->equals($this->task->assigneeId())) { |
|
| 62 | $assigneeId = $owner->userId()->id(); |
|
| 63 | } |
|
| 64 | if ($owner->id()->equals($this->task->creatorId())) { |
|
| 65 | $creatorId = $owner->userId()->id(); |
|
| 66 | } |
|
| 67 | } |
|
| 68 | ||
| 69 | return [ |
|
| 70 | 'id' => $this->task->id()->id(), |
|