({
channelId,
threadId,
messageId,
imitationId,
isThread,
isReply,
message,
thread,
}: PushType)
| 57 | }; |
| 58 | |
| 59 | export const pushChannel = ({ |
| 60 | channelId, |
| 61 | threadId, |
| 62 | messageId, |
| 63 | imitationId, |
| 64 | isThread, |
| 65 | isReply, |
| 66 | message, |
| 67 | thread, |
| 68 | }: PushType) => { |
| 69 | return request |
| 70 | .post(`${getPushUrlSSR()}/api/channel`) |
| 71 | .send({ |
| 72 | channel_id: channelId, |
| 73 | thread_id: threadId, |
| 74 | message_id: messageId, |
| 75 | imitation_id: imitationId, |
| 76 | is_thread: isThread, |
| 77 | is_reply: isReply, |
| 78 | message, |
| 79 | thread, |
| 80 | token, |
| 81 | }) |
| 82 | .then((e) => e.status); |
| 83 | }; |
| 84 | |
| 85 | export const pushUser = async ({ |
| 86 | channelId, |
no test coverage detected