mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
fix: health endpoint crashing with embedded cache usage
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user