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

Function findChannelById

packages/core/src/channel.ts:106–114  ·  view source on GitHub ↗
(
	id: string,
)

Source from the content-addressed store, hash-verified

104}
105
106export async function findChannelById(
107 id: string,
108): Promise<ChannelWithFlags | null> {
109 const data = await db.query.dbChannels.findFirst({
110 where: eq(dbChannels.id, id),
111 });
112 if (!data) return null;
113 return addFlagsToChannel(data);
114}
115
116export async function findChannelByInviteCode(
117 inviteCode: string,

Callers 14

channel.test.tsFile · 0.90
mutateChannelFunction · 0.90
channel.tsFile · 0.90
checkIfCanMarkSolutionFunction · 0.90
indexRootChannelFunction · 0.90
indexTextBasedChannelFunction · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90
runMethod · 0.90

Calls 1

addFlagsToChannelFunction · 0.90

Tested by

no test coverage detected