Add flag for breakoutRoom participant
This commit is contained in:
parent
04c2f26576
commit
e2beb298bc
@ -1649,14 +1649,20 @@ WHERE "assignedAt" IS NOT NULL;
|
|||||||
|
|
||||||
--TODO improve performance (and handle two users with same extId)
|
--TODO improve performance (and handle two users with same extId)
|
||||||
CREATE OR REPLACE VIEW "v_breakoutRoom_participant" as
|
CREATE OR REPLACE VIEW "v_breakoutRoom_participant" as
|
||||||
SELECT DISTINCT "parentMeetingId", "breakoutRoomId", "userMeetingId", "userId"
|
SELECT DISTINCT
|
||||||
|
"parentMeetingId",
|
||||||
|
"breakoutRoomId",
|
||||||
|
"userMeetingId",
|
||||||
|
"userId",
|
||||||
|
false as "isAudioOnly"
|
||||||
FROM "v_breakoutRoom"
|
FROM "v_breakoutRoom"
|
||||||
WHERE "currentRoomIsOnline" IS TRUE
|
WHERE "currentRoomIsOnline" IS TRUE
|
||||||
union all --include users that joined only with audio
|
union --include users that joined only with audio
|
||||||
select parent_user."meetingId" as "parentMeetingId",
|
select parent_user."meetingId" as "parentMeetingId",
|
||||||
bk_user."meetingId" as "breakoutRoomId",
|
bk_user."meetingId" as "breakoutRoomId",
|
||||||
bk_user."meetingId" as "userMeetingId",
|
parent_user."meetingId" as "userMeetingId",
|
||||||
bk_user."userId"
|
parent_user."userId",
|
||||||
|
true as "isAudioOnly"
|
||||||
from "user" bk_user
|
from "user" bk_user
|
||||||
join "user" parent_user on parent_user."userId" = bk_user."userId" and parent_user."transferredFromParentMeeting" is false
|
join "user" parent_user on parent_user."userId" = bk_user."userId" and parent_user."transferredFromParentMeeting" is false
|
||||||
where bk_user."transferredFromParentMeeting" is true
|
where bk_user."transferredFromParentMeeting" is true
|
||||||
|
Loading…
Reference in New Issue
Block a user