From d1c867d089d28620a44b2f86f81658308da17a5e Mon Sep 17 00:00:00 2001 From: Zack Fu Zi Xiang Date: Fri, 26 Jul 2024 13:46:06 +0800 Subject: [PATCH] chore: update client api --- frontend/rust-lib/Cargo.lock | 24 +++++++++---------- frontend/rust-lib/Cargo.toml | 4 ++-- .../af_cloud/impls/user/cloud_service_impl.rs | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/frontend/rust-lib/Cargo.lock b/frontend/rust-lib/Cargo.lock index a1894ba14a..03adac6b06 100644 --- a/frontend/rust-lib/Cargo.lock +++ b/frontend/rust-lib/Cargo.lock @@ -163,7 +163,7 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "app-error" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "anyhow", "bincode", @@ -183,7 +183,7 @@ dependencies = [ [[package]] name = "appflowy-ai-client" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "anyhow", "bytes", @@ -718,7 +718,7 @@ dependencies = [ [[package]] name = "client-api" version = "0.2.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "again", "anyhow", @@ -768,7 +768,7 @@ dependencies = [ [[package]] name = "client-api-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "collab-entity", "collab-rt-entity", @@ -780,7 +780,7 @@ dependencies = [ [[package]] name = "client-websocket" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "futures-channel", "futures-util", @@ -989,7 +989,7 @@ dependencies = [ [[package]] name = "collab-rt-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "anyhow", "bincode", @@ -1014,7 +1014,7 @@ dependencies = [ [[package]] name = "collab-rt-protocol" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "anyhow", "async-trait", @@ -1352,7 +1352,7 @@ checksum = "c2e66c9d817f1720209181c316d28635c050fa304f9c79e47a520882661b7308" [[package]] name = "database-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "anyhow", "app-error", @@ -2701,7 +2701,7 @@ dependencies = [ [[package]] name = "gotrue" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "anyhow", "futures-util", @@ -2718,7 +2718,7 @@ dependencies = [ [[package]] name = "gotrue-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "anyhow", "app-error", @@ -3083,7 +3083,7 @@ dependencies = [ [[package]] name = "infra" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "anyhow", "bytes", @@ -5229,7 +5229,7 @@ dependencies = [ [[package]] name = "shared-entity" version = "0.1.0" -source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=c2a839ba8bf9ead44679eb08f3a9680467b767ca#c2a839ba8bf9ead44679eb08f3a9680467b767ca" +source = "git+https://github.com/AppFlowy-IO/AppFlowy-Cloud?rev=762e558d72b11c01d78d407dbebb7c15099ecc55#762e558d72b11c01d78d407dbebb7c15099ecc55" dependencies = [ "anyhow", "app-error", diff --git a/frontend/rust-lib/Cargo.toml b/frontend/rust-lib/Cargo.toml index eca9b34df1..93ea1ff06a 100644 --- a/frontend/rust-lib/Cargo.toml +++ b/frontend/rust-lib/Cargo.toml @@ -99,8 +99,8 @@ zip = "2.1.3" # Run the script.add_workspace_members: # scripts/tool/update_client_api_rev.sh new_rev_id # ⚠️⚠️⚠️️ -client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "c2a839ba8bf9ead44679eb08f3a9680467b767ca" } -client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "c2a839ba8bf9ead44679eb08f3a9680467b767ca" } +client-api = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "762e558d72b11c01d78d407dbebb7c15099ecc55" } +client-api-entity = { git = "https://github.com/AppFlowy-IO/AppFlowy-Cloud", rev = "762e558d72b11c01d78d407dbebb7c15099ecc55" } [profile.dev] opt-level = 0 diff --git a/frontend/rust-lib/flowy-server/src/af_cloud/impls/user/cloud_service_impl.rs b/frontend/rust-lib/flowy-server/src/af_cloud/impls/user/cloud_service_impl.rs index 76e26cb7e8..e8a14e5ee4 100644 --- a/frontend/rust-lib/flowy-server/src/af_cloud/impls/user/cloud_service_impl.rs +++ b/frontend/rust-lib/flowy-server/src/af_cloud/impls/user/cloud_service_impl.rs @@ -217,7 +217,7 @@ where let try_get_client = self.server.try_get_client(); FutureResult::new(async move { let workspaces = try_get_client?.get_workspaces().await?; - to_user_workspaces(workspaces.0) + to_user_workspaces(workspaces) }) }