mirror of
https://github.com/penpot/penpot.git
synced 2026-08-05 12:29:00 +00:00
🐛 Fix team last_activity_at calculation (#10854)
This commit is contained in:
parent
ff16b8bbef
commit
678e206fe6
@ -845,6 +845,15 @@ RETURNING id, deleted_at;")
|
|||||||
WHERE p.team_id = t.id
|
WHERE p.team_id = t.id
|
||||||
AND p.deleted_at IS NULL
|
AND p.deleted_at IS NULL
|
||||||
AND f.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,
|
) AS activity) AS last_activity_at,
|
||||||
owner_tpr.profile_id AS owner_profile_id,
|
owner_tpr.profile_id AS owner_profile_id,
|
||||||
owner_p.fullname AS owner_name,
|
owner_p.fullname AS owner_name,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user