( data: z.infer<typeof zChannelCreateMany>[], )
| 231 | } |
| 232 | |
| 233 | export 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 | |
| 242 | export async function updateChannel({ |
| 243 | update, |
no test coverage detected