Skip to content

Commit

Permalink
eliminate uses of invite field in teams
Browse files Browse the repository at this point in the history
  • Loading branch information
nebudev14 committed Aug 31, 2022
1 parent 702411e commit d10de0c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ rand = "0.8.4"
regex = "1.5.4"
reqwest = {version = "0.11.6", features = ["json"]}
time = "0.2.25"
nanoid = "0.4.0"

tokio = {version = "1.15.0", features = ["full"]}

Expand Down
1 change: 0 additions & 1 deletion crates/db_models/src/team.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub struct Team {
pub avatar: Option<String>,
pub personal: bool,
pub slug: String,
pub invite: String,
}

#[derive(Clone, Debug, Insertable, Deserialize)]
Expand Down
1 change: 0 additions & 1 deletion src/api/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ pub async fn code(
slug: into_slug(&info.name, true),
avatar: None,
personal: true,
invite: nanoid!(7),
})
.get_result::<Team>(c)?;

Expand Down
1 change: 0 additions & 1 deletion src/api/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ pub async fn login(conn: DbConn, cookies: &CookieJar<'_>) -> Result<Redirect, St
slug: into_slug(&user.name, true),
avatar: None,
personal: true,
invite: nanoid!(7),
})
.get_result::<Team>(c)?;

Expand Down

0 comments on commit d10de0c

Please sign in to comment.