Skip to content

Commit ac96a7c

Browse files
committed
Linting fixes
1 parent 558947d commit ac96a7c

File tree

6 files changed

+3
-14
lines changed

6 files changed

+3
-14
lines changed

src/controller/org.controller/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const mw = require('../../middleware/middleware')
44
const errorMsgs = require('../../middleware/errorMessages')
55
const controller = require('./org.controller')
66
const { body, param, query } = require('express-validator')
7-
const { parseGetParams, parsePostParams, parseError, isOrgRole, isUserRole, isValidUsername, validateCreateOrgParameters, validateUpdateOrgParameters } = require('./org.middleware')
7+
const { parseGetParams, parsePostParams, parseError, isUserRole, isValidUsername, validateCreateOrgParameters, validateUpdateOrgParameters } = require('./org.middleware')
88
const { toUpperCaseArray, isFlatStringArray } = require('../../middleware/middleware')
99
const getConstants = require('../../../src/constants').getConstants
1010
const CONSTANTS = getConstants()

src/controller/org.controller/org.controller.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ const getConstants = require('../../constants').getConstants
1010
const cryptoRandomString = require('crypto-random-string')
1111
const uuid = require('uuid')
1212
const errors = require('./error')
13-
const RegistryOrgRepository = require('../../repositories/registryOrgRepository')
14-
const { random } = require('lodash')
1513
const error = new errors.OrgControllerError()
1614
const validateUUID = require('uuid').validate
17-
const booleanIsTrue = require('../../utils/utils').booleanIsTrue
1815

1916
/**
2017
* Get the details of all orgs

src/controller/registry-org.controller/registry-org.controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ async function createOrg (req, res, next) {
124124
} else if (k === 'hard_quota') {
125125
newOrg.hard_quota = body[k]
126126
} else if (k === 'contact_info') {
127-
const { additional_contact_users, admins, ...contactInfo } = body[k]
127+
const { additionalContactUsers, admins, ...contactInfo } = body[k]
128128
newOrg.contact_info = {
129-
additional_contact_users: [...(additional_contact_users || [])],
129+
additional_contact_users: [...(additionalContactUsers || [])],
130130
poc: '',
131131
poc_email: '',
132132
poc_phone: '',

src/controller/registry-org.controller/registry-org.middleware.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ function parseDeleteParams (req, res, next) {
3131
next()
3232
}
3333

34-
function isUserRole (val) {
35-
const constants = getConstants()
36-
}
37-
3834
function isOrgRole (val) {
3935
const CONSTANTS = getConstants()
4036

src/model/registry-org.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const mongoose = require('mongoose')
2-
const { Schema } = mongoose
32
const aggregatePaginate = require('mongoose-aggregate-paginate-v2')
43
const MongoPaging = require('mongo-cursor-pagination')
54

test/integration-tests/org/postOrgUsersTest.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ const { faker } = require('@faker-js/faker')
66

77
const constants = require('../constants.js')
88
const app = require('../../../src/index.js')
9-
const getConstants = require('../../../src/constants').getConstants
10-
const argon2 = require('argon2')
119
const _ = require('lodash')
1210
const User = require('../../../src/model/user')
1311
// const RegistryUser = require('../../../src/model/registry-user.js')
14-
const cryptoRandomString = require('crypto-random-string')
1512

1613
const shortName = { shortname: 'win_5' }
1714

0 commit comments

Comments
 (0)