diff --git a/backend/src/api/roles.ts b/backend/src/api/roles.ts index a04eb1116..46e71d8a5 100644 --- a/backend/src/api/roles.ts +++ b/backend/src/api/roles.ts @@ -735,7 +735,7 @@ export const getByState = wrapHandler(async (event) => { * get: * description: List all organizations with query parameters. * tags: - * - Users + * - Users * parameters: * - in: query * name: state @@ -743,15 +743,15 @@ export const getByState = wrapHandler(async (event) => { * schema: * type: array * items: - * type: string + * type: string * - in: query * name: regionId * required: false * schema: * type: array * items: - * type: string - * + * type: string + * */ export const getAllV2 = wrapHandler(async (event) => { if (!isRegionalAdmin(event)) return Unauthorized; diff --git a/backend/src/tasks/syncdb.ts b/backend/src/tasks/syncdb.ts index 559e321dd..4d14cd977 100644 --- a/backend/src/tasks/syncdb.ts +++ b/backend/src/tasks/syncdb.ts @@ -24,8 +24,8 @@ const NUM_SAMPLE_ORGS = 10; // Number of sample orgs const NUM_SAMPLE_DOMAINS = 10; // Number of sample domains per org const PROB_SAMPLE_SERVICES = 0.5; // Higher number means more services per domain const PROB_SAMPLE_VULNERABILITIES = 0.5; // Higher number means more vulnerabilities per domain -const SAMPLE_STATES = ['VA', 'CA', 'CO'] -const SAMPLE_REGIONIDS = ['1', '2', '3'] +const SAMPLE_STATES = ['VA', 'CA', 'CO']; +const SAMPLE_REGIONIDS = ['1', '2', '3']; export const handler: Handler = async (event) => { const connection = await connectToDatabase(false); @@ -83,7 +83,7 @@ export const handler: Handler = async (event) => { tags: [tag], state: SAMPLE_STATES[Math.floor(Math.random() * SAMPLE_STATES.length)], regionId: - SAMPLE_REGIONIDS[Math.floor(Math.random() * SAMPLE_REGIONIDS.length)], + SAMPLE_REGIONIDS[Math.floor(Math.random() * SAMPLE_REGIONIDS.length)] }).save(); console.log(organization.name); organizationIds.push(organization.id);