fix "push to bottom" for user tasks in API (#12659)

Also:
- Fix the test for this which has been equally broken.
- Simplify apidoc position info and make consistent in similar routes.
- Replace non-ascii characters in apidoc comment.
This commit is contained in:
Alys
2020-10-18 01:58:48 +10:00
committed by GitHub
parent 9061a59fc2
commit 8b1c009990
4 changed files with 13 additions and 11 deletions

View File

@@ -122,8 +122,9 @@ api.getGroupTasks = {
* @apiGroup Task
*
* @apiParam (Path) {String} taskId The task _id
* @apiParam (Path) {Number} position Where to move the task (-1 means push to bottom).
* First position is 0
* @apiParam (Path) {Number} position Where to move the task.
* 0 = top of the list ("push to top").
* -1 = bottom of the list ("push to bottom").
*
* @apiSuccess {Array} data The new tasks order (group.tasksOrder.{task.type}s)
*/