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

Method joinChannel

apps/web/services/channels/index.ts:258–271  ·  view source on GitHub ↗
({
    channelId,
    userId,
  }: {
    channelId: string;
    userId: string;
  })

Source from the content-addressed store, hash-verified

256 }
257
258 static async joinChannel({
259 channelId,
260 userId,
261 }: {
262 channelId: string;
263 userId: string;
264 }) {
265 await prisma.memberships.create({
266 data: {
267 usersId: userId,
268 channelsId: channelId,
269 },
270 });
271 }
272
273 static async updateCursor(channelId: string, cursor?: string | null) {
274 if (cursor) {

Callers 2

index.tsFile · 0.80
FindChannelModalFunction · 0.80

Calls 1

createMethod · 0.45

Tested by

no test coverage detected