mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-03 14:30:29 +00:00

* chore: import into space * chore: par insert * fix: migrate from anon * chore: fix test * chore: update test * chore: add test * chore: update test * chore: update test * chore: update docs * fix: space collab * chore: update test
14 lines
429 B
Rust
14 lines
429 B
Rust
use crate::entities::UserFolderPB;
|
|
use flowy_error::{ErrorCode, FlowyError};
|
|
|
|
pub(crate) fn folder_not_init_error() -> FlowyError {
|
|
FlowyError::internal().with_context("Folder not initialized")
|
|
}
|
|
|
|
pub(crate) fn workspace_data_not_sync_error(uid: i64, workspace_id: &str) -> FlowyError {
|
|
FlowyError::from(ErrorCode::WorkspaceDataNotSync).with_payload(UserFolderPB {
|
|
uid,
|
|
workspace_id: workspace_id.to_string(),
|
|
})
|
|
}
|