MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / findServerByAlias

Function findServerByAlias

packages/core/src/server.ts:167–173  ·  view source on GitHub ↗
(alias: string)

Source from the content-addressed store, hash-verified

165}
166
167export 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
175export async function findServerByAliasOrId(aliasOrId: string) {
176 const found = await db.query.dbServers.findFirst({

Callers 1

server.test.tsFile · 0.90

Calls 1

addFlagsToServerFunction · 0.90

Tested by

no test coverage detected