(id: string)
| 112 | } |
| 113 | |
| 114 | export async function findServerById(id: string) { |
| 115 | const found = await db.query.dbServers.findFirst({ |
| 116 | where: eq(dbServers.id, id), |
| 117 | }); |
| 118 | if (!found) return null; |
| 119 | return addFlagsToServer(found); |
| 120 | } |
| 121 | |
| 122 | export async function findServerByIdWithChannels(id: string) { |
| 123 | const found = await db.query.dbServers.findFirst({ |
no test coverage detected