Update date to 1 past threshold for upgrade

This commit is contained in:
onyinyang 2023-02-13 16:29:34 -05:00
parent 0a29265c1f
commit 56bc148db1
No known key found for this signature in database
GPG Key ID: 156A6435430C2036
1 changed files with 4 additions and 4 deletions

View File

@ -130,12 +130,12 @@ pub fn trust_promotion(open_lox_cred: String, lox_pub: String) -> Result<String,
// To test creation of the credential we need to advance the day to 30 // To test creation of the credential we need to advance the day to 30
// in production this should just use the today() function // in production this should just use the today() function
log(&format!( log(&format!(
"TEST: Add 30 days to today's date: {}", "TEST ONLY: Add 31 days to today's date: {}",
add_today(30) add_today(31)
)); ));
let tp_result = let tp_result =
match trust_promotion::request(&lox_cred.lox_credential, &pubkeys.lox_pub, add_today(30)) { //CHANGE add_today(31) to today() for production
//CHANGE add_today() to today() match trust_promotion::request(&lox_cred.lox_credential, &pubkeys.lox_pub, add_today(31)) {
Ok(tp_result) => tp_result, Ok(tp_result) => tp_result,
Err(e) => { Err(e) => {
log(&format!("Error: {:?}", e.to_string())); log(&format!("Error: {:?}", e.to_string()));