-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
cve-services/src/repositories/baseOrgRepository.js
Lines 1045 to 1058 in 69b2859
| convertRegistryToLegacy (registryOrg) { | |
| return { | |
| name: registryOrg?.long_name ?? null, | |
| short_name: registryOrg?.short_name ?? null, | |
| UUID: registryOrg?.UUID ?? null, | |
| authority: { | |
| active_roles: registryOrg?.authority || ['CNA'] | |
| }, | |
| policies: { | |
| id_quota: registryOrg?.hard_quota ?? null | |
| }, | |
| time: { | |
| created: registryOrg?.created ?? null, | |
| modified: registryOrg?.modified ?? null |
accesses seven properties of registryOrg: long_name, short_name, UUID, authority, hard_quota, created, and modified. However,
cve-services/src/model/baseorg.js
Lines 7 to 36 in 69b2859
| const schema = { | |
| _id: false, | |
| UUID: String, | |
| long_name: String, | |
| short_name: String, | |
| aliases: [String], | |
| authority: [String], | |
| root_or_tlr: Boolean, | |
| reports_to: String, | |
| users: { type: [String], set: toUndefined }, | |
| admins: [String], | |
| contact_info: { | |
| additional_contact_users: [String], | |
| poc: String, | |
| poc_email: String, | |
| poc_phone: String, | |
| org_email: String, | |
| website: String | |
| }, | |
| cna_role_type: String, | |
| cna_country: String, | |
| vulnerability_advisory_locations: [String], | |
| advisory_location_require_credentials: Boolean, | |
| industry: String, | |
| tl_root_start_date: Date, | |
| is_cna_discussion_list: Boolean, | |
| in_use: Boolean, | |
| created: Date, | |
| last_updated: Date | |
| } |
has
last_updated instead of modified - and last_updated seems to be intended because of the conversion in the opposite direction, i.e., last_updated: legacyOrg?.time?.modified in convertLegacyToRegistry.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Review