mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: bump client api (#5217)
* chore: bump client api * chore: fix compile * chore: fix compile
This commit is contained in:
@ -535,7 +535,7 @@ fn to_user_workspace(af_workspace: AFWorkspace) -> UserWorkspace {
|
||||
id: af_workspace.workspace_id.to_string(),
|
||||
name: af_workspace.workspace_name,
|
||||
created_at: af_workspace.created_at,
|
||||
workspace_database_object_id: af_workspace.database_storage_id.to_string(),
|
||||
database_indexer_id: af_workspace.database_storage_id.to_string(),
|
||||
icon: af_workspace.icon,
|
||||
}
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ fn make_user_workspace() -> UserWorkspace {
|
||||
id: uuid::Uuid::new_v4().to_string(),
|
||||
name: "My Workspace".to_string(),
|
||||
created_at: Default::default(),
|
||||
workspace_database_object_id: uuid::Uuid::new_v4().to_string(),
|
||||
database_indexer_id: uuid::Uuid::new_v4().to_string(),
|
||||
icon: "".to_string(),
|
||||
}
|
||||
}
|
||||
|
@ -21,10 +21,7 @@ async fn supabase_user_sign_up_test() {
|
||||
let user: AuthResponse = user_service.sign_up(BoxAny::new(params)).await.unwrap();
|
||||
assert!(!user.latest_workspace.id.is_empty());
|
||||
assert!(!user.user_workspaces.is_empty());
|
||||
assert!(!user
|
||||
.latest_workspace
|
||||
.workspace_database_object_id
|
||||
.is_empty());
|
||||
assert!(!user.latest_workspace.database_indexer_id.is_empty());
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
@ -41,10 +38,7 @@ async fn supabase_user_sign_up_with_existing_uuid_test() {
|
||||
.unwrap();
|
||||
let user: AuthResponse = user_service.sign_up(BoxAny::new(params)).await.unwrap();
|
||||
assert!(!user.latest_workspace.id.is_empty());
|
||||
assert!(!user
|
||||
.latest_workspace
|
||||
.workspace_database_object_id
|
||||
.is_empty());
|
||||
assert!(!user.latest_workspace.database_indexer_id.is_empty());
|
||||
assert!(!user.user_workspaces.is_empty());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user