feat: server can actually create root and sections
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-13 22:57:20 +02:00
parent 76f1c87663
commit 699bac7159
12 changed files with 276 additions and 49 deletions

View File

@@ -15,7 +15,7 @@ impl Deref for SharedState {
}
pub struct State {
pub _db: Pool<Postgres>,
pub db: Pool<Postgres>,
}
impl State {
@@ -32,6 +32,6 @@ impl State {
let _ = sqlx::query("SELECT 1;").fetch_one(&db).await?;
Ok(Self { _db: db })
Ok(Self { db })
}
}