fix: make these available for use

This commit is contained in:
silver 2023-07-30 01:19:06 +01:00
parent 88abff575f
commit c3ed7fe02c

View file

@ -34,13 +34,13 @@ pub struct AccountsPending {
#[derive(Debug, Deserialize, Serialize, sqlx::FromRow)] #[derive(Debug, Deserialize, Serialize, sqlx::FromRow)]
pub struct Accounts { pub struct Accounts {
user: String, pub user: String,
uid: i64, pub uid: i64,
discord: Option<String>, pub discord: Option<String>,
mail: String, pub mail: String,
student_id: String, pub student_id: String,
enabled: bool, pub enabled: bool,
secure: bool, pub secure: bool,
} }
pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> { pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> {