You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
storage: don't use references for pagination
This commit is contained in:
@ -232,7 +232,7 @@ impl RootQuery {
|
||||
|
||||
let page = repo
|
||||
.upstream_oauth_provider()
|
||||
.list_paginated(&pagination)
|
||||
.list_paginated(pagination)
|
||||
.await?;
|
||||
|
||||
let mut connection = Connection::new(page.has_previous_page, page.has_next_page);
|
||||
|
@ -99,7 +99,7 @@ impl User {
|
||||
|
||||
let page = repo
|
||||
.compat_sso_login()
|
||||
.list_paginated(&self.0, &pagination)
|
||||
.list_paginated(&self.0, pagination)
|
||||
.await?;
|
||||
|
||||
let mut connection = Connection::new(page.has_previous_page, page.has_next_page);
|
||||
@ -146,7 +146,7 @@ impl User {
|
||||
|
||||
let page = repo
|
||||
.browser_session()
|
||||
.list_active_paginated(&self.0, &pagination)
|
||||
.list_active_paginated(&self.0, pagination)
|
||||
.await?;
|
||||
|
||||
let mut connection = Connection::new(page.has_previous_page, page.has_next_page);
|
||||
@ -193,7 +193,7 @@ impl User {
|
||||
|
||||
let page = repo
|
||||
.user_email()
|
||||
.list_paginated(&self.0, &pagination)
|
||||
.list_paginated(&self.0, pagination)
|
||||
.await?;
|
||||
|
||||
let mut connection = Connection::with_additional_fields(
|
||||
@ -244,7 +244,7 @@ impl User {
|
||||
|
||||
let page = repo
|
||||
.oauth2_session()
|
||||
.list_paginated(&self.0, &pagination)
|
||||
.list_paginated(&self.0, pagination)
|
||||
.await?;
|
||||
|
||||
let mut connection = Connection::new(page.has_previous_page, page.has_next_page);
|
||||
@ -295,7 +295,7 @@ impl User {
|
||||
|
||||
let page = repo
|
||||
.upstream_oauth_link()
|
||||
.list_paginated(&self.0, &pagination)
|
||||
.list_paginated(&self.0, pagination)
|
||||
.await?;
|
||||
|
||||
let mut connection = Connection::new(page.has_previous_page, page.has_next_page);
|
||||
|
Reference in New Issue
Block a user