From 67b3741a3d19d7ce4718876fc139f0ea233cb32d Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Tue, 24 Oct 2023 16:55:05 +0800 Subject: [PATCH] feat: expose updated at (#137) --- libs/database-entity/src/dto.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/database-entity/src/dto.rs b/libs/database-entity/src/dto.rs index 14e6c038..58b722d9 100644 --- a/libs/database-entity/src/dto.rs +++ b/libs/database-entity/src/dto.rs @@ -320,6 +320,7 @@ pub struct AFUserProfile { pub metadata: Option, pub encryption_sign: Option, pub latest_workspace_id: Uuid, + pub updated_at: i64, } impl TryFrom for AFUserProfile { @@ -346,6 +347,7 @@ impl TryFrom for AFUserProfile { metadata: value.metadata, encryption_sign: value.encryption_sign, latest_workspace_id, + updated_at: value.updated_at.map(|v| v.timestamp()).unwrap_or(0), }) } }