Skip to content

cleanOutputSequential does not clean anything #1630

@ElectricNroff

Description

@ElectricNroff

function cleanOutputSequential (cveIdDocuments) {
cveIdDocuments.forEach((obj) => {
const cveId = JSON.parse(JSON.stringify(obj))
delete cveId.time
if (cveId.__v !== undefined) {
delete cveId.__v
}
})
return cveIdDocuments
}

The delete operations on cveId do not affect the return value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions