提交 fee8dcde 编写于 作者: Y Yorick Peterse

Merge branch 'todo-update-order' into 'master'

Remove unnecessary ORDER BY clause when updating todos

See merge request !10399
......@@ -204,7 +204,7 @@ class TodoService
# Only update those that are not really on that state
todos = todos.where.not(state: state)
todos_ids = todos.pluck(:id)
todos.update_all(state: state)
todos.unscope(:order).update_all(state: state)
current_user.update_todos_count_cache
todos_ids
end
......
---
title: Remove unnecessary ORDER BY clause when updating todos
merge_request:
author: mhasbini
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册