Skip to content

Commit

Permalink
#955 Updated response message for creating and updating CVE records t…
Browse files Browse the repository at this point in the history
…o point to cve.org or test.cve.org
  • Loading branch information
jdaigneau5 committed Jan 20, 2023
1 parent 93d3cd9 commit af383d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controller/cve.controller/cve.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const errors = require('./error')
const getConstants = require('../../constants').getConstants
const error = new errors.CveControllerError()
const booleanIsTrue = require('../../utils/utils').booleanIsTrue
const url = process.env.NODE_ENV === 'staging' ? 'https://test.cve.org/' : 'https://cve.org/'

// Helper function to create providerMetadata object
function createProviderMetadata (orgId, shortName, updateDate) {
Expand Down Expand Up @@ -328,7 +329,7 @@ async function submitCna (req, res, next) {
}

const responseMessage = {
message: id + ' record was successfully created.',
message: id + ' record was successfully created. This submission should appear on ' + url + ' within 15 minutes.',
created: cveModel.cve
}

Expand Down Expand Up @@ -417,7 +418,7 @@ async function updateCna (req, res, next) {
}

const responseMessage = {
message: id + ' record was successfully updated.',
message: id + ' record was successfully updated. This submission should appear on ' + url + ' within 15 minutes.',
updated: cveModel.cve
}

Expand Down

0 comments on commit af383d0

Please sign in to comment.