use setup instead of test_database

This commit is contained in:
Chris Cochrun 2023-04-17 11:29:19 -05:00
parent 75d959f541
commit 860469a3d1
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ mod video_model {
}
#[qinvokable]
pub fn test_database(mut self: Pin<&mut Self>) {
pub fn setup(mut self: Pin<&mut Self>) {
let db = &mut self.as_mut().get_db();
let results = videos
.load::<crate::models::Video>(db)