ezidam, openid: refactor check app in method, verifying and send POST as well

This commit is contained in:
Philippe Loctaux 2023-03-16 21:38:32 +01:00
parent 8ae0c59a25
commit eb93cbd7ec
7 changed files with 76 additions and 22 deletions

View file

@ -42,11 +42,11 @@ impl App {
}
/// App needs to be not archived
pub async fn get_one(
pub(crate) async fn get_one(
conn: impl SqliteExecutor<'_>,
id: &str,
redirect: &str,
) -> Result<Option<Self>, Error> {
) -> Result<Option<Self>, database::Error> {
Ok(DatabaseApps::get_one(conn, id, redirect)
.await?
.map(Self::from))