Skip to content

Commit

Permalink
add js doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Dec 12, 2024
1 parent e79497a commit 7e7c2cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/middleware/datasetTaskList.middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ function getStatusTag (status) {
}
}

/**
* Prepares the task list for the dataset task list page
*
* This function takes the request, response, and next middleware function as arguments
* and uses the parsed request parameters, entities, resources, and entry/ entity issue counts
* to generate a list of tasks based on the issues found in the dataset
*
* @param {Object} req - The request object
* @param {Object} res - The response object
* @param {Function} next - The next middleware function
* @return {undefined}
*/
export const prepareTasks = (req, res, next) => {
const { lpa, dataset } = req.parsedParams
const { entities, resources } = req
Expand Down

0 comments on commit 7e7c2cf

Please sign in to comment.