MCPcopy Create free account
hub / github.com/AnswerOverflow/AnswerOverflow / findAllThreadsByParentId

Function findAllThreadsByParentId

packages/core/src/channel.ts:126–135  ·  view source on GitHub ↗
(input: {
	parentId: string;
	limit?: number;
})

Source from the content-addressed store, hash-verified

124}
125
126export async function findAllThreadsByParentId(input: {
127 parentId: string;
128 limit?: number;
129}): Promise<ChannelWithFlags[]> {
130 const data = await db.query.dbChannels.findMany({
131 where: eq(dbChannels.parentId, input.parentId),
132 limit: input.limit,
133 });
134 return data.map(addFlagsToChannel);
135}
136
137export async function findAllChannelsByServerId(
138 serverId: string,

Callers 1

findAllChannelQuestionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected