mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
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:
@@ -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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user