|
// Create map of orgUUID to shortnames and users to simplify aggregation later |
|
const orgs = await orgRepo.getAllOrgs() |
|
const users = await userRepo.getAllUsers() |
This function obtains the entire Org and User collections. Instead of calling the current getAllOrgs and getAllUsers, it should call similar functions that have a projection, e.g.,
UUID: 1, short_name: 1, _id: 0
UUID: 1, username: 1, _id: 0
cve-services/src/controller/cve-id.controller/cve-id.controller.js
Lines 40 to 42 in cffcc6a
This function obtains the entire Org and User collections. Instead of calling the current getAllOrgs and getAllUsers, it should call similar functions that have a projection, e.g.,