MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / findChannelByInviteCode

Function findChannelByInviteCode

packages/core/src/channel.ts:116–124  ·  view source on GitHub ↗
(
	inviteCode: string,
)

Source from the content-addressed store, hash-verified

114}
115
116export async function findChannelByInviteCode(
117 inviteCode: string,
118): Promise<ChannelWithFlags | null> {
119 const data = await db.query.dbChannels.findFirst({
120 where: eq(dbChannels.inviteCode, inviteCode),
121 });
122 if (!data) return null;
123 return addFlagsToChannel(data);
124}
125
126export async function findAllThreadsByParentId(input: {
127 parentId: string;

Callers 2

channel.test.tsFile · 0.90
runMethod · 0.90

Calls 1

addFlagsToChannelFunction · 0.90

Tested by

no test coverage detected