0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-09-25 11:58:54 +02:00

Merge branch 'BlackDex-alive-db-check' into main

This commit is contained in:
Daniel García 2021-10-18 21:13:29 +02:00
commit a5ba67fef2
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A

View file

@ -64,8 +64,10 @@ fn attachments(uuid: SafeString, file_id: SafeString) -> Option<NamedFile> {
NamedFile::open(Path::new(&CONFIG.attachments_folder()).join(uuid).join(file_id)).ok()
}
// We use DbConn here to let the alive healthcheck also verify the database connection.
use crate::db::DbConn;
#[get("/alive")]
fn alive() -> Json<String> {
fn alive(_conn: DbConn) -> Json<String> {
use crate::util::format_date;
use chrono::Utc;