Skip to content

Commit

Permalink
Merge branch 'nanderstabel/issue124' into feat/sd-jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
nanderstabel committed Oct 10, 2024
2 parents eae028b + b4ebf82 commit 3262ab8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion agent_api_rest/src/holder/holder/credentials/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub(crate) async fn credentials(State(state): State<HolderState>) -> Response {

(StatusCode::OK, Json(all_credentials)).into_response()
}
Ok(None) => (StatusCode::OK, Json(json!({}))).into_response(),
Ok(None) => (StatusCode::OK, Json(json!([]))).into_response(),
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
}
}
Expand Down
2 changes: 1 addition & 1 deletion agent_api_rest/src/holder/holder/offers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub(crate) async fn offers(State(state): State<HolderState>) -> Response {

(StatusCode::OK, Json(all_received_offers)).into_response()
}
Ok(None) => (StatusCode::OK, Json(json!({}))).into_response(),
Ok(None) => (StatusCode::OK, Json(json!([]))).into_response(),
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
}
}
Expand Down
2 changes: 1 addition & 1 deletion agent_api_rest/src/holder/holder/presentations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub(crate) async fn get_presentations(State(state): State<HolderState>) -> Respo

(StatusCode::OK, Json(all_presentations)).into_response()
}
Ok(None) => (StatusCode::OK, Json(json!({}))).into_response(),
Ok(None) => (StatusCode::OK, Json(json!([]))).into_response(),
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
}
}
Expand Down
2 changes: 1 addition & 1 deletion agent_api_rest/src/identity/connections/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub(crate) async fn get_connections(

(StatusCode::OK, Json(filtered_connections)).into_response()
}
Ok(None) => (StatusCode::OK, Json(json!({}))).into_response(),
Ok(None) => (StatusCode::OK, Json(json!([]))).into_response(),
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
}
}
Expand Down
2 changes: 1 addition & 1 deletion agent_api_rest/src/identity/services/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub(crate) async fn services(State(state): State<IdentityState>) -> Response {

(StatusCode::OK, Json(all_services)).into_response()
}
Ok(None) => (StatusCode::OK, Json(json!({}))).into_response(),
Ok(None) => (StatusCode::OK, Json(json!([]))).into_response(),
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
}
}
2 changes: 1 addition & 1 deletion agent_api_rest/src/issuance/credentials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ pub(crate) async fn all_credentials(State(state): State<IssuanceState>) -> Respo

(StatusCode::OK, Json(all_credentials)).into_response()
}
Ok(None) => (StatusCode::OK, Json(json!({}))).into_response(),
Ok(None) => (StatusCode::OK, Json(json!([]))).into_response(),
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
}
}
Expand Down
2 changes: 1 addition & 1 deletion agent_api_rest/src/issuance/offers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub(crate) async fn all_offers(State(state): State<IssuanceState>) -> Response {

(StatusCode::OK, Json(all_offers)).into_response()
}
Ok(None) => (StatusCode::OK, Json(json!({}))).into_response(),
Ok(None) => (StatusCode::OK, Json(json!([]))).into_response(),
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
}
}
Expand Down
2 changes: 1 addition & 1 deletion agent_api_rest/src/verification/authorization_requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub(crate) async fn all_authorization_requests(State(state): State<VerificationS

(StatusCode::OK, Json(all_authorization_requests)).into_response()
}
Ok(None) => (StatusCode::OK, Json(json!({}))).into_response(),
Ok(None) => (StatusCode::OK, Json(json!([]))).into_response(),
_ => StatusCode::INTERNAL_SERVER_ERROR.into_response(),
}
}
Expand Down

0 comments on commit 3262ab8

Please sign in to comment.