bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/app/app-graphql/time-sync/queries.ts
2023-09-14 10:44:04 -03:00

19 lines
329 B
TypeScript

import { gql } from '@apollo/client';
export interface GetServerTimeResponse {
// eslint-disable-next-line camelcase
current_time: Array<{ currentTimestamp: Date }>;
}
export const GET_SERVER_TIME = gql`
query getServerTime {
current_time {
currentTimestamp
}
}
`;
export default {
GET_SERVER_TIME,
};