You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
storage: start unifying database errors
This commit is contained in:
@@ -119,7 +119,7 @@ pub trait QueryBuilderExt {
|
||||
after: Option<Ulid>,
|
||||
first: Option<usize>,
|
||||
last: Option<usize>,
|
||||
) -> Result<&mut Self, anyhow::Error>;
|
||||
) -> Result<&mut Self, InvalidPagination>;
|
||||
}
|
||||
|
||||
impl<'a, DB> QueryBuilderExt for QueryBuilder<'a, DB>
|
||||
@@ -135,7 +135,7 @@ where
|
||||
after: Option<Ulid>,
|
||||
first: Option<usize>,
|
||||
last: Option<usize>,
|
||||
) -> Result<&mut Self, anyhow::Error> {
|
||||
) -> Result<&mut Self, InvalidPagination> {
|
||||
generate_pagination(self, id_field, before, after, first, last)?;
|
||||
Ok(self)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user