Skip to content

Commit

Permalink
Merge pull request #167 from BuckinghamAJ/feature/ebuy_RFQs
Browse files Browse the repository at this point in the history
Adding RFQs to solicitation query
  • Loading branch information
BuckinghamAJ authored May 30, 2024
2 parents 878a74c + 4d1caf0 commit 629eb2d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions server/certs/cert_location.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Place holder for where the certs will be when deployed.
2 changes: 1 addition & 1 deletion server/config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ module.exports = {
"ENERGY, DEPARTMENT OF":"Department of Energy",
"MILLENNIUM CHALLENGE CORPORATION":"Millennium Challenge Corporation"
},
VisibleNoticeTypes : ['Solicitation', 'Combined Synopsis/Solicitation'],
VisibleNoticeTypes : ['Solicitation', 'Combined Synopsis/Solicitation', 'RFQ'],
//"minPredictionCutoffDate" : "2020-02-01T00:00:00.000Z",
"predictionCutoffDays" : 60,
"updatePredictionTableMaxRunTime" : 10,
Expand Down
8 changes: 8 additions & 0 deletions server/routes/auth.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,17 @@ function updateUser(login_gov_data, user) {
}
}

function capitalize(s)
{
return s[0].toUpperCase() + s.slice(1);
}

function createUser(loginGovUser) {
let now = new Date()
let date = (now.getMonth() + 1) + "-" + now.getDate() + "-" + now.getFullYear()

//console.log("Login.gov user:", loginGovUser)

let user_data = {
'firstName': loginGovUser.given_name || null,
'lastName': loginGovUser.family_name || null,
Expand Down
2 changes: 1 addition & 1 deletion server/routes/noticeType.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
getNoticeTypes : function(req, res) {

return res.status(200).send(
configuration.getConfig("VisibleNoticeTypes", ['Solicitation', 'Combined Synopsis/Solicitation'])
configuration.getConfig("VisibleNoticeTypes", ['Solicitation', 'Combined Synopsis/Solicitation', 'RFQ'])
)

//
Expand Down
2 changes: 1 addition & 1 deletion server/routes/prediction.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ async function getPredictions (filter, user) {
}

// filter to allowed notice types
let types = configuration.getConfig("VisibleNoticeTypes", ['Solicitation', 'Combined Synopsis/Solicitation'])
let types = configuration.getConfig("VisibleNoticeTypes", ['Solicitation', 'Combined Synopsis/Solicitation', 'RFQ'])

attributes.where = {
noticeType: {
Expand Down

0 comments on commit 629eb2d

Please sign in to comment.