Skip to content

Commit

Permalink
feat: Updated backend/src/controllers/regionContro
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 22, 2023
1 parent 43e86e4 commit b963f88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend/src/controllers/regionController.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,14 @@ async function getAllSubregions(regionId, hierarchyId) {
}

// Retrieve subregions for a specific region
/**
* Retrieves subregions for a specific region.
*
* @param {number} regionId - The ID of the region.
* @param {number} hierarchyId - The ID of the hierarchy.
* @param {boolean} getAll - Whether to retrieve all subregions or only direct subregions.
* @returns {Promise<Object>} - A promise that resolves to an object containing the subregions data and status.
*/
async function getSubregions(regionId, hierarchyId, getAll) {
try {
// Check if the region exists
Expand Down

0 comments on commit b963f88

Please sign in to comment.