Skip to content

Commit

Permalink
Store issuedAt alongside UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
calebtuttle committed Jul 18, 2023
1 parent acbea75 commit d2c88cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ async function initializeMongoDb() {
govId: {
uuid: String,
sessionId: String,
issuedAt: Date,
},
});
const UserVerifications = mongoose.model(
Expand Down
2 changes: 1 addition & 1 deletion src/services/register-vouched.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async function saveUserToDb(uuid, jobID) {
govId: {
uuid: uuid,
sessionId: jobID,
createdAt: new Date(),
issuedAt: new Date(),
},
});
try {
Expand Down
2 changes: 1 addition & 1 deletion src/services/veriff/credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async function saveUserToDb(uuid, sessionId) {
govId: {
uuid: uuid,
sessionId: sessionId,
createdAt: new Date(),
issuedAt: new Date(),
},
});
try {
Expand Down

0 comments on commit d2c88cb

Please sign in to comment.