fix: fix credential3rd graphql

This commit is contained in:
2025-05-24 02:32:02 +08:00
parent 0fcbc6bbe9
commit 66413f92e3
23 changed files with 837 additions and 1009 deletions

View File

@@ -1,3 +1,6 @@
use async_graphql::Error as AsyncGraphQLError;
use seaography::SeaographyError;
#[derive(Debug, snafu::Snafu)]
pub enum CryptoError {
#[snafu(transparent)]
@@ -9,3 +12,9 @@ pub enum CryptoError {
#[snafu(transparent)]
SerdeJsonError { source: serde_json::Error },
}
impl From<CryptoError> for SeaographyError {
fn from(error: CryptoError) -> Self {
SeaographyError::AsyncGraphQLError(AsyncGraphQLError::new(error.to_string()))
}
}