some tweaks to the models in rust
This commit is contained in:
parent
ab168af16f
commit
020e812bce
2 changed files with 33 additions and 3 deletions
|
|
@ -191,6 +191,9 @@ mod video_model {
|
|||
id.eq(&video_id),
|
||||
title.eq(&video_title.to_string()),
|
||||
path.eq(&video_path.to_string()),
|
||||
start_time.eq(&video.start_time),
|
||||
end_time.eq(&video.end_time),
|
||||
looping.eq(&video.looping),
|
||||
))
|
||||
.execute(db);
|
||||
println!("{:?}", result);
|
||||
|
|
@ -202,7 +205,9 @@ mod video_model {
|
|||
true
|
||||
}
|
||||
Err(_e) => {
|
||||
println!("Cannot connect to database");
|
||||
println!(
|
||||
"Cannot connect to database or there was an error in inserting the video"
|
||||
);
|
||||
false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue