Skip to content

Commit

Permalink
fix: fix task remove after events table removal (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Oct 20, 2018
1 parent e14d58c commit 232cee4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/Http/Controllers/Contacts/TasksController.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,5 @@ public function toggle(TaskToggleRequest $request, Contact $contact, Task $task)
public function destroy(Contact $contact, Task $task)
{
$task->delete();

$contact->events()->forObject($task)->get()->each->delete();
}
}

0 comments on commit 232cee4

Please sign in to comment.