Skip to content

Commit 385b0da

Browse files
committed
remove cve-board...fornow
1 parent 49405da commit 385b0da

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

src/scripts/migrate.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function run () {
3636
allUsers = await usersCursor.toArray()
3737

3838
// Add the CVE Board as an org
39-
await addCVEBoard(db)
39+
// await addCVEBoard(db)
4040

4141
// Get UUIDs for MITRE and the CVE Board
4242
const orgsCursor = db.collection('Org').find()
@@ -59,6 +59,7 @@ async function run () {
5959

6060
run()
6161

62+
// eslint-disable-next-line no-unused-vars
6263
async function addCVEBoard (db) {
6364
console.log('Adding CVE Board...')
6465
const trgOrgCol = await db.collection('RegistryOrg')
@@ -140,13 +141,13 @@ async function orgHelper (db) {
140141
}
141142

142143
// Establish hierarchy of orgs
143-
let parent = null
144+
const parent = null
144145
const children = []
145-
if (doc.short_name.toLowerCase().includes('mitre')) {
146-
parent = cveBoardUUID
147-
} else {
148-
parent = mitreUUID
149-
}
146+
// if (doc.short_name.toLowerCase().includes('mitre')) {
147+
// parent = cveBoardUUID
148+
// } else {
149+
// parent = mitreUUID
150+
// }
150151

151152
// Set root_or_tlr, charter_or_scope, disclosure_policy, org_email, website
152153
let rootTlr = false
@@ -195,10 +196,6 @@ async function orgHelper (db) {
195196
last_updated: doc.time.modified
196197
}
197198
}
198-
if (doc.shortName === 'win_5') {
199-
console.log(doc)
200-
console.log(updateDoc)
201-
}
202199
await trgOrgCol.updateOne(trgQuery, updateDoc, options)
203200
}
204201
}

0 commit comments

Comments
 (0)