( postId: string, )
| 114 | `; |
| 115 | |
| 116 | export const getPostChatRoom = async ( |
| 117 | postId: string, |
| 118 | ): Promise<ChatRoom | null> => { |
| 119 | const res = await gqlClient.request<{ postChatRoom: ChatRoom | null }>( |
| 120 | POST_CHAT_ROOM_QUERY, |
| 121 | { postId }, |
| 122 | ); |
| 123 | |
| 124 | return res.postChatRoom; |
| 125 | }; |
| 126 | |
| 127 | export const openPostChatRoom = async (postId: string): Promise<ChatRoom> => { |
| 128 | const res = await gqlClient.request<{ openPostChatRoom: ChatRoom }>( |
no outgoing calls
no test coverage detected