fix: health endpoint crashing with embedded cache usage

This commit is contained in:
Aravinth Manivannan 2023-12-09 01:14:14 +05:30
parent 8bed3cb352
commit b6326603d1
No known key found for this signature in database
GPG key ID: F8F50389936984FF

View file

@ -62,6 +62,7 @@ impl Health {
#[my_codegen::get(path = "crate::V1_API_ROUTES.meta.health")]
async fn health(data: AppData) -> impl Responder {
let mut resp_builder = HealthBuilder::default();
resp_builder.redis(None);
resp_builder.db(data.db.ping().await);