({
userId,
threadId,
channelId,
mentionType,
}: {
userId: string;
threadId: string;
channelId: string;
mentionType: string;
})
| 109 | }; |
| 110 | |
| 111 | export const pushUserMention = ({ |
| 112 | userId, |
| 113 | threadId, |
| 114 | channelId, |
| 115 | mentionType, |
| 116 | }: { |
| 117 | userId: string; |
| 118 | threadId: string; |
| 119 | channelId: string; |
| 120 | mentionType: string; |
| 121 | }) => { |
| 122 | return request |
| 123 | .post(`${getPushUrlSSR()}/api/user`) |
| 124 | .send({ |
| 125 | user_id: userId, |
| 126 | thread_id: threadId, |
| 127 | channel_id: channelId, |
| 128 | is_mention: true, |
| 129 | mention_type: mentionType, |
| 130 | token, |
| 131 | }) |
| 132 | .then((e) => e.status); |
| 133 | }; |
| 134 | |
| 135 | export const pushCommunity = ({ |
| 136 | communityId, |
no test coverage detected