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

Function createManyChannels

packages/core/src/channel.ts:233–240  ·  view source on GitHub ↗
(
	data: z.infer<typeof zChannelCreateMany>[],
)

Source from the content-addressed store, hash-verified

231}
232
233export async function createManyChannels(
234 data: z.infer<typeof zChannelCreateMany>[],
235) {
236 for await (const channel of data) {
237 await createChannel(channel);
238 }
239 return data.map((c) => getDefaultChannel({ ...c }));
240}
241
242export async function updateChannel({
243 update,

Callers 2

channel.test.tsFile · 0.90
upsertManyChannelsFunction · 0.85

Calls 2

getDefaultChannelFunction · 0.90
createChannelFunction · 0.85

Tested by

no test coverage detected