Move context to new file, add to context if user is authentified
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-15 18:10:51 +01:00
parent b20fb5f079
commit 05ca82c4e1
4 changed files with 98 additions and 22 deletions

View File

@@ -29,7 +29,7 @@ macro_rules! find_element {
use diesel::prelude::*;
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Database {
conn: Pool<ConnectionManager<PgConnection>>,
}