mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Run both the new query and the old query
Throw away the results of the new query for now. Now that we know it will run without raising exceptions, we can replace the old query with the new query.
This commit is contained in:
parent
ec1a4d78ba
commit
eb7c34e973
1 changed files with 1 additions and 0 deletions
|
@ -1316,6 +1316,7 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue