Refactor more stuff

This commit is contained in:
Tobias Reisinger 2023-12-04 23:59:26 +01:00
parent 5a7b2de0ea
commit 9394a1ae52
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
15 changed files with 167 additions and 86 deletions
emgauwa-lib/src/db

View file

@ -40,7 +40,10 @@ pub async fn init(db: &str) -> Pool<Sqlite> {
run_migrations(&pool).await;
let mut pool_conn = pool.acquire().await.unwrap();
let mut pool_conn = pool
.acquire()
.await
.expect("Failed to acquire pool connection");
DbSchedule::get_on(&mut pool_conn)
.await