(input: {
parentId: string;
limit?: number;
})
| 124 | } |
| 125 | |
| 126 | export 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 | |
| 137 | export async function findAllChannelsByServerId( |
| 138 | serverId: string, |
no outgoing calls
no test coverage detected