feat: removed minecraft from server struct
This commit is contained in:
parent
d58d837940
commit
9c284f2a5c
1 changed files with 0 additions and 7 deletions
|
@ -225,7 +225,6 @@ pub struct Servers {
|
|||
pub role_current: Option<RoleId>,
|
||||
pub member_past: i64,
|
||||
pub member_current: i64,
|
||||
pub server_minecraft: Option<String>,
|
||||
}
|
||||
impl<'r> FromRow<'r, SqliteRow> for Servers {
|
||||
fn from_row(row: &'r SqliteRow) -> Result<Self, Error> {
|
||||
|
@ -254,11 +253,6 @@ impl<'r> FromRow<'r, SqliteRow> for Servers {
|
|||
_ => None,
|
||||
};
|
||||
|
||||
let server_minecraft = match row.try_get("server_minecraft") {
|
||||
Ok(x) => Some(x),
|
||||
_ => None,
|
||||
};
|
||||
|
||||
Ok(Self {
|
||||
server,
|
||||
wolves_api: row.try_get("wolves_api")?,
|
||||
|
@ -266,7 +260,6 @@ impl<'r> FromRow<'r, SqliteRow> for Servers {
|
|||
role_current,
|
||||
member_past: row.try_get("member_past")?,
|
||||
member_current: row.try_get("member_current")?,
|
||||
server_minecraft,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue