({
channelId,
userId,
}: {
channelId: string;
userId: string;
})
| 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) { |
no test coverage detected