New graphql endpoint to get server current_time
This commit is contained in:
parent
f26f2e079c
commit
5fa732464d
@ -1295,3 +1295,12 @@ JOIN "v_meeting_breakoutPolicies"vmbp using("meetingId")
|
||||
JOIN "breakoutRoom" br ON br."parentMeetingId" = vmbp."parentId" AND br."externalId" = m."extId";
|
||||
|
||||
|
||||
----------------------
|
||||
DROP VIEW IF EXISTS v_current_time;
|
||||
|
||||
CREATE OR REPLACE VIEW "v_current_time" AS
|
||||
SELECT
|
||||
current_timestamp AS "currentTimestampWithTimeZone",
|
||||
localtimestamp AS "currentTimestampWithoutTimeZone",
|
||||
current_timestamp AT TIME ZONE 'UTC' AS "currentTimestampUTC",
|
||||
EXTRACT(EPOCH FROM current_timestamp) * 1000 AS "currentTimeMillis";
|
||||
|
@ -0,0 +1,17 @@
|
||||
table:
|
||||
name: v_current_time
|
||||
schema: public
|
||||
configuration:
|
||||
column_config: {}
|
||||
custom_column_names: {}
|
||||
custom_name: current_time
|
||||
custom_root_fields: {}
|
||||
select_permissions:
|
||||
- role: bbb_client
|
||||
permission:
|
||||
columns:
|
||||
- currentTimestampWithTimeZone
|
||||
- currentTimestampWithoutTimeZone
|
||||
- currentTimestampUTC
|
||||
- currentTimeMillis
|
||||
filter: {}
|
@ -8,6 +8,7 @@
|
||||
- "!include public_v_chat.yaml"
|
||||
- "!include public_v_chat_message_private.yaml"
|
||||
- "!include public_v_chat_message_public.yaml"
|
||||
- "!include public_v_current_time.yaml"
|
||||
- "!include public_v_external_video.yaml"
|
||||
- "!include public_v_meeting_breakoutPolicies.yaml"
|
||||
- "!include public_v_meeting_group.yaml"
|
||||
|
Loading…
Reference in New Issue
Block a user