document the dueDate parameter for API task functions - partial fix for #8087

This commit is contained in:
Alys
2018-06-30 15:53:04 +10:00
parent 54e49ca3b9
commit c072935e80
2 changed files with 2 additions and 2 deletions

View File

@@ -273,7 +273,7 @@ api.createChallengeTasks = {
* @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) [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
*

View File

@@ -148,7 +148,7 @@ export async function createTasks (req, res, options = {}) {
* @param options.user The user 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.dueDate
* @param options.dueDate The date to use for computing the nextDue field for each returned task
* @return The tasks found
*/
export async function getTasks (req, res, options = {}) {