Introduces flag showRemainingTime

This commit is contained in:
Gustavo Trott 2024-04-09 15:41:54 -03:00
parent e505978017
commit 7142d351eb
2 changed files with 7 additions and 1 deletions

View File

@ -1750,6 +1750,11 @@ ORDER BY m."createdAt";
create view "v_meeting_componentsFlags" as
select "meeting"."meetingId",
(case
when NULLIF("durationInSeconds",0) is null then false
when current_timestamp + '30 minutes'::interval > ("createdAt" + ("durationInSeconds" * '1 second'::interval)) then true
else false
end) "showRemainingTime",
exists (
select 1
from "breakoutRoom"

View File

@ -11,11 +11,12 @@ select_permissions:
permission:
columns:
- hasBreakoutRoom
- hasCaption
- hasExternalVideo
- hasPoll
- hasScreenshare
- hasTimer
- hasCaption
- showRemainingTime
filter:
meetingId:
_eq: X-Hasura-MeetingId