Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nickviola committed Dec 1, 2023
1 parent aae3a91 commit bc9359a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions backend/src/api/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -735,23 +735,23 @@ export const getByState = wrapHandler(async (event) => {
* get:
* description: List all organizations with query parameters.
* tags:
* - Users
* - Users
* parameters:
* - in: query
* name: state
* required: false
* 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;
Expand Down
6 changes: 3 additions & 3 deletions backend/src/tasks/syncdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit bc9359a

Please sign in to comment.