({
channelId,
threadId,
messageId,
imitationId,
isThread,
isReply,
message,
thread,
}: PushType)
| 31 | }; |
| 32 | |
| 33 | export const push = ({ |
| 34 | channelId, |
| 35 | threadId, |
| 36 | messageId, |
| 37 | imitationId, |
| 38 | isThread, |
| 39 | isReply, |
| 40 | message, |
| 41 | thread, |
| 42 | }: PushType) => { |
| 43 | return request |
| 44 | .post(`${getPushUrlSSR()}/api/message`) |
| 45 | .send({ |
| 46 | channel_id: channelId, |
| 47 | thread_id: threadId, |
| 48 | message_id: messageId, |
| 49 | imitation_id: imitationId, |
| 50 | is_thread: isThread, |
| 51 | is_reply: isReply, |
| 52 | message, |
| 53 | thread, |
| 54 | token, |
| 55 | }) |
| 56 | .then((e) => e.status); |
| 57 | }; |
| 58 | |
| 59 | export const pushChannel = ({ |
| 60 | channelId, |
no test coverage detected