MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / pushUser

Function pushUser

apps/web/services/push/index.ts:85–109  ·  view source on GitHub ↗
({
  channelId,
  threadId,
  messageId,
  imitationId,
  isThread,
  isReply,
  message,
  thread,
  userId,
}: PushType & { userId: string })

Source from the content-addressed store, hash-verified

83};
84
85export const pushUser = async ({
86 channelId,
87 threadId,
88 messageId,
89 imitationId,
90 isThread,
91 isReply,
92 message,
93 thread,
94 userId,
95}: PushType & { userId: string }) => {
96 const e = await request.post(`${getPushUrlSSR()}/api/user`).send({
97 user_id: userId,
98 channel_id: channelId,
99 thread_id: threadId,
100 message_id: messageId,
101 imitation_id: imitationId,
102 is_thread: isThread,
103 is_reply: isReply,
104 message,
105 thread,
106 token,
107 });
108 return e.status;
109};
110
111export const pushUserMention = ({
112 userId,

Callers 1

resolvePushFunction · 0.85

Calls 3

getPushUrlSSRFunction · 0.90
sendMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected