mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
Use the results of the new query object
This confirms that we've successfully extracted the code and now we can start removing the old code.
This commit is contained in:
parent
eb7c34e973
commit
df091c7ec5
1 changed files with 1 additions and 2 deletions
|
|
@ -1316,7 +1316,6 @@ end
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_not_done_todos
|
def get_not_done_todos
|
||||||
Todos::UndoneTodosQuery.new(current_user).query(params)
|
|
||||||
if params[:done]
|
if params[:done]
|
||||||
not_done_todos = current_user.todos.completed.completed_after(Time.zone.now - params[:done].to_i.days)
|
not_done_todos = current_user.todos.completed.completed_after(Time.zone.now - params[:done].to_i.days)
|
||||||
else
|
else
|
||||||
|
|
@ -1349,7 +1348,7 @@ end
|
||||||
not_done_todos = not_done_todos.where('project_id' => project)
|
not_done_todos = not_done_todos.where('project_id' => project)
|
||||||
end
|
end
|
||||||
|
|
||||||
return not_done_todos
|
return Todos::UndoneTodosQuery.new(current_user).query(params)
|
||||||
end
|
end
|
||||||
|
|
||||||
def onsite_redirect_to(destination)
|
def onsite_redirect_to(destination)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue