Skip to content

Commit 6cfa29d

Browse files
committed
Invite the account with the highest github id
1 parent 12c5a55 commit 6cfa29d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/models/owner.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ impl Owner {
7373
users::table
7474
.filter(users::gh_login.eq(name))
7575
.filter(users::gh_id.ne(-1))
76+
.order(users::gh_id.desc())
7677
.first(conn)
7778
.map(Owner::User)
7879
.map_err(|_| cargo_err(&format_args!("could not find user with login `{}`", name)))

0 commit comments

Comments
 (0)