bug: plan+task query producing multiple results (#68)

This commit is contained in:
Matthew Ryan Dillon 2020-12-06 20:03:50 -07:00 committed by GitHub
parent e0ad13ee6c
commit 7aa0059c96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -187,7 +187,7 @@ defmodule PlannerWeb.TasksLive do
end
def handle_event("finish-task", %{"task-id" => task_id}, socket) do
{_, task} = Tasks.finish_task_by_id!(task_id)
{_, _} = Tasks.finish_task_by_id!(task_id)
route = get_index_route(socket)
{:noreply, push_patch(socket, to: route)}
end