using setup instead of test_database

This commit is contained in:
Chris Cochrun 2023-04-17 11:30:26 -05:00
parent 860469a3d1
commit 1a9b7b0bd7
4 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ mod presentation_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 = presentations
.load::<crate::models::Presentation>(db)