1
0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2024-11-23 03:12:36 +01: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;