mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
document the dueDate parameter for API task functions - partial fix for #8087
This commit is contained in:
@@ -273,7 +273,7 @@ api.createChallengeTasks = {
|
|||||||
* @apiGroup Task
|
* @apiGroup Task
|
||||||
*
|
*
|
||||||
* @apiParam (Query) {String="habits","dailys","todos","rewards","completedTodos"} type Optional query parameter to return just a type of tasks. By default all types will be returned except completed todos that must be requested separately. The "completedTodos" type returns only the 30 most recently completed.
|
* @apiParam (Query) {String="habits","dailys","todos","rewards","completedTodos"} type Optional query parameter to return just a type of tasks. By default all types will be returned except completed todos that must be requested separately. The "completedTodos" type returns only the 30 most recently completed.
|
||||||
* @apiParam (Query) [dueDate]
|
* @apiParam (Query) [dueDate] type Optional date to use for computing the nextDue field for each returned task.
|
||||||
*
|
*
|
||||||
* @apiSuccess {Array} data An array of tasks
|
* @apiSuccess {Array} data An array of tasks
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ export async function createTasks (req, res, options = {}) {
|
|||||||
* @param options.user The user that these tasks belong to
|
* @param options.user The user that these tasks belong to
|
||||||
* @param options.challenge The challenge that these tasks belong to
|
* @param options.challenge The challenge that these tasks belong to
|
||||||
* @param options.group The group that these tasks belong to
|
* @param options.group The group that these tasks belong to
|
||||||
* @param options.dueDate
|
* @param options.dueDate The date to use for computing the nextDue field for each returned task
|
||||||
* @return The tasks found
|
* @return The tasks found
|
||||||
*/
|
*/
|
||||||
export async function getTasks (req, res, options = {}) {
|
export async function getTasks (req, res, options = {}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user