Skip to content

Commit

Permalink
Updating packages. Adding isMet flag to PCP creation. (#718)
Browse files Browse the repository at this point in the history
* Updating packages.  Adding isMet flag to PCP creation.

* Add metURL property and model.

* Update hash
  • Loading branch information
marklise committed Sep 8, 2023
1 parent 8ae0df2 commit d32c221
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions api/controllers/commentperiod.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ exports.protectedPost = async function (args, res) {
addedBy: args.swagger.params.auth_payload.preferred_username,
commentIdCount: 0,
dateAdded: new Date(),
isMET: obj.isMet,
metURL: obj.metURL,
dateCompleted: obj.dateCompleted,
dateStarted: obj.dateStarted,
instructions: obj.instructions,
Expand Down
4 changes: 2 additions & 2 deletions api/helpers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
var jwt = require('jsonwebtoken');
const jwksClient = require('jwks-rsa');

var ISSUER = process.env.SSO_ISSUER || 'https://oidc.gov.bc.ca/auth/realms/eagle';
var JWKSURI = process.env.SSO_JWKSURI || 'https://oidc.gov.bc.ca/auth/realms/eagle/protocol/openid-connect/certs';
var ISSUER = process.env.SSO_ISSUER || 'https://dev.loginproxy.gov.bc.ca/auth/realms/eao-epic';
var JWKSURI = process.env.SSO_JWKSURI || 'https://dev.loginproxy.gov.bc.ca/auth/realms/eao-epic/protocol/openid-connect/certs';
var JWT_SIGN_EXPIRY = process.env.JWT_SIGN_EXPIRY || '1440'; // 24 hours in minutes.
var SECRET = process.env.SECRET || 'defaultSecret';
var KEYCLOAK_ENABLED = process.env.KEYCLOAK_ENABLED || 'true';
Expand Down
2 changes: 2 additions & 0 deletions api/helpers/models/commentperiod.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ module.exports = require('../models')('CommentPeriod', {
classifiedPercent : { type: Number, default: '' },
commenterRoles : [{ type: String, default: '' }],
commentTip : { type: String, default: '' },
isMet : { type: Boolean, default: false },
metURL : { type: String, default: '' },
dateAdded : { type: Date, default: '' },
dateCompleted : { type: Date, default: '' },
dateCompletedEst : { type: Date, default: '' },
Expand Down
2 changes: 1 addition & 1 deletion api/test/repo_warden/model_vs_factory_hash.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
{
"name": "commentperiod.js",
"hash": "S3Er2sQvV2LKda643xnVnM/4s8w="
"hash": "RyZ8If5J6j6CtmCrAY4pZi6373Q="
},
{
"name": "document.js",
Expand Down

0 comments on commit d32c221

Please sign in to comment.