Update user retrieval API to take both github user id and github login
This commit is contained in:
parent
9886259b3a
commit
1877fc234b
5 changed files with 165 additions and 39 deletions
|
@ -1404,7 +1404,7 @@ impl Server {
|
|||
let users = match query.len() {
|
||||
0 => vec![],
|
||||
1 | 2 => db
|
||||
.get_user_by_github_login(&query)
|
||||
.get_user_by_github_account(&query, None)
|
||||
.await?
|
||||
.into_iter()
|
||||
.collect(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue