feat: migrate get_email to use db_*

This commit is contained in:
realaravinth
2022-05-26 20:37:16 +05:30
parent 38d518d843
commit 12edac7915
6 changed files with 23 additions and 83 deletions

View File

@@ -310,6 +310,15 @@ impl From<ServiceError> for PageError {
}
}
#[cfg(not(tarpaulin_include))]
impl From<DBError> for PageError {
#[cfg(not(tarpaulin_include))]
fn from(e: DBError) -> Self {
let se: ServiceError = e.into();
se.into()
}
}
impl ResponseError for PageError {
fn error_response(&self) -> HttpResponse {
use crate::PAGES;