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

Function findServerByAliasOrId

packages/core/src/server.ts:175–181  ·  view source on GitHub ↗
(aliasOrId: string)

Source from the content-addressed store, hash-verified

173}
174
175export 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
183export async function findManyServersById(
184 ids: string[],

Callers 2

server.tsFile · 0.90

Calls 1

addFlagsToServerFunction · 0.90

Tested by

no test coverage detected