using setup instead of test_database
This commit is contained in:
parent
860469a3d1
commit
1a9b7b0bd7
4 changed files with 4 additions and 4 deletions
|
@ -72,7 +72,7 @@ mod image_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 = images
|
||||
.load::<crate::models::Image>(db)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue