mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +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
|
||||
|
||||
def get_not_done_todos
|
||||
Todos::UndoneTodosQuery.new(current_user).query(params)
|
||||
if params[:done]
|
||||
not_done_todos = current_user.todos.completed.completed_after(Time.zone.now - params[:done].to_i.days)
|
||||
else
|
||||
|
|
@ -1349,7 +1348,7 @@ end
|
|||
not_done_todos = not_done_todos.where('project_id' => project)
|
||||
end
|
||||
|
||||
return not_done_todos
|
||||
return Todos::UndoneTodosQuery.new(current_user).query(params)
|
||||
end
|
||||
|
||||
def onsite_redirect_to(destination)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue