rustploy 0.1.58

Rustploy PaaS daemon — lightweight self-hosted deployment platform
1
2
3
4
5
6
7
8
9
10
11
//! `Command::BackupDestinationClear`: apaga o destino gravado (os backups já enviados ficam no S3).

use crate::bootstrap::state::AppState;
use shared::Response;

pub async fn handle(state: AppState) -> Response {
    match crate::features::data_backup::destination::clear(&state.db).await {
        Ok(()) => Response::Ok,
        Err(e) => Response::err("DatabaseError", e.to_string()),
    }
}