mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: workspace service in user crate (#4373)
* refactor: user manager * feat: implement workspace service * refactor: migrate user data when sign up * chore: fmt * chore: enable beta cloud * chore: update ci * chore: trim slash
This commit is contained in:
@ -3,6 +3,7 @@ use std::fmt::Debug;
|
||||
|
||||
use protobuf::ProtobufError;
|
||||
use thiserror::Error;
|
||||
use tokio::task::JoinError;
|
||||
use validator::{ValidationError, ValidationErrors};
|
||||
|
||||
use flowy_derive::ProtoBuf;
|
||||
@ -171,6 +172,12 @@ impl From<fancy_regex::Error> for FlowyError {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<JoinError> for FlowyError {
|
||||
fn from(e: JoinError) -> Self {
|
||||
FlowyError::internal().with_context(e)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<tokio::sync::oneshot::error::RecvError> for FlowyError {
|
||||
fn from(e: tokio::sync::oneshot::error::RecvError) -> Self {
|
||||
FlowyError::internal().with_context(e)
|
||||
|
Reference in New Issue
Block a user