Skip to content

Commit

Permalink
Update now_ms to now_ns because of SSI update
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesShuller committed Oct 20, 2023
1 parent f409c92 commit f2e86f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http/src/credentials.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::Context;
use axum::{http::StatusCode, Extension, Json};
use didkit::{
ssi::ldp::{now_ms, Error as LdpError},
ssi::ldp::{now_ns, Error as LdpError},
ContextLoader, CredentialOrJWT, JWTOrLDPOptions, ProofFormat, VerifiableCredential,
VerificationResult, DID_METHODS,
};
Expand Down Expand Up @@ -42,7 +42,7 @@ pub async fn issue(
None => return Err((StatusCode::NOT_FOUND, "Missing key".to_string()).into()),
};
if credential.issuance_date.is_none() {
credential.issuance_date = Some(now_ms().into());
credential.issuance_date = Some(now_ns().into());
}
if let Err(e) = credential.validate_unsigned() {
return Err((StatusCode::BAD_REQUEST, e.to_string()).into());
Expand Down

0 comments on commit f2e86f0

Please sign in to comment.