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:
Matt Rogers 2019-04-07 20:04:28 -05:00
parent ec1a4d78ba
commit eb7c34e973
No known key found for this signature in database
GPG key ID: 605D017C07EB4316

View file

@ -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