(aliasOrId: string)
| 173 | } |
| 174 | |
| 175 | export async function findServerByAliasOrId(aliasOrId: string) { |
| 176 | const found = await db.query.dbServers.findFirst({ |
| 177 | where: or(eq(dbServers.vanityUrl, aliasOrId), eq(dbServers.id, aliasOrId)), |
| 178 | }); |
| 179 | if (!found) return null; |
| 180 | return addFlagsToServer(found); |
| 181 | } |
| 182 | |
| 183 | export async function findManyServersById( |
| 184 | ids: string[], |
no test coverage detected