added more logs

This commit is contained in:
Andre Henriques 2023-05-22 21:26:47 +01:00
parent 4f208c8ec5
commit 40a7655cea

View File

@ -307,7 +307,9 @@ pub async fn start_animation(
start_sender: &State<ASender<Animation>>, start_sender: &State<ASender<Animation>>,
db: &State<DBPool>, db: &State<DBPool>,
) -> String { ) -> String {
println!("try to get animation!");
let animation = get_animation(name, db); let animation = get_animation(name, db);
println!("{?:animation}!");
if animation.is_err() || animation.as_ref().ok().is_none() { if animation.is_err() || animation.as_ref().ok().is_none() {
return json!(ApiResponse { return json!(ApiResponse {