bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/app/app-graphql/time-sync/queries.ts

19 lines
329 B
TypeScript
Raw Normal View History

import { gql } from '@apollo/client';
export interface GetServerTimeResponse {
2023-09-14 21:44:04 +08:00
// 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,
};