From 5472eff9f7d3d5187022538f81e0d0c5f2245f14 Mon Sep 17 00:00:00 2001 From: Zack Fu Zi Xiang Date: Wed, 28 Feb 2024 13:05:23 +0800 Subject: [PATCH] feat: added created at field for UserWorkspacePB --- frontend/rust-lib/flowy-user/src/entities/user_profile.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/rust-lib/flowy-user/src/entities/user_profile.rs b/frontend/rust-lib/flowy-user/src/entities/user_profile.rs index 030c5b1179..2ccbe6143b 100644 --- a/frontend/rust-lib/flowy-user/src/entities/user_profile.rs +++ b/frontend/rust-lib/flowy-user/src/entities/user_profile.rs @@ -225,6 +225,9 @@ pub struct UserWorkspacePB { #[pb(index = 2)] pub name: String, + + #[pb(index = 3)] + pub created_at_timestamp: i64, } impl From for UserWorkspacePB { @@ -232,6 +235,7 @@ impl From for UserWorkspacePB { Self { workspace_id: value.id, name: value.name, + created_at_timestamp: value.created_at.timestamp(), } } }