(domain: string)
| 41 | } |
| 42 | |
| 43 | export async function findServerByCustomDomain(domain: string) { |
| 44 | const found = await db.query.dbServers.findFirst({ |
| 45 | where: eq(dbServers.customDomain, domain), |
| 46 | }); |
| 47 | if (!found) return null; |
| 48 | return addFlagsToServer(found); |
| 49 | } |
| 50 | |
| 51 | export async function createServer( |
| 52 | input: z.infer<typeof zServerCreate> & { |
no test coverage detected