From 678e206fe62fbfecbd63a8f7e72377d46fb73e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Valderrama?= Date: Mon, 27 Jul 2026 15:31:56 +0200 Subject: [PATCH] :bug: Fix team last_activity_at calculation (#10854) --- backend/src/app/rpc/management/nitrate.clj | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backend/src/app/rpc/management/nitrate.clj b/backend/src/app/rpc/management/nitrate.clj index 9ba5764ce2..7d2ac78e1e 100644 --- a/backend/src/app/rpc/management/nitrate.clj +++ b/backend/src/app/rpc/management/nitrate.clj @@ -845,6 +845,15 @@ RETURNING id, deleted_at;") WHERE p.team_id = t.id AND p.deleted_at IS NULL AND f.deleted_at IS NULL + UNION ALL + SELECT tpr2.created_at + FROM team_profile_rel AS tpr2 + WHERE tpr2.team_id = t.id + AND tpr2.is_owner IS NOT TRUE + UNION ALL + SELECT ti.updated_at + FROM team_invitation AS ti + WHERE ti.team_id = t.id ) AS activity) AS last_activity_at, owner_tpr.profile_id AS owner_profile_id, owner_p.fullname AS owner_name,