(alias: string)
| 165 | } |
| 166 | |
| 167 | export async function findServerByAlias(alias: string) { |
| 168 | const found = await db.query.dbServers.findFirst({ |
| 169 | where: eq(dbServers.vanityUrl, alias), |
| 170 | }); |
| 171 | if (!found) return null; |
| 172 | return addFlagsToServer(found); |
| 173 | } |
| 174 | |
| 175 | export async function findServerByAliasOrId(aliasOrId: string) { |
| 176 | const found = await db.query.dbServers.findFirst({ |
no test coverage detected