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

Function getDefaultServer

packages/core/src/utils/serverUtils.ts:25–43  ·  view source on GitHub ↗
(
	override: Partial<Server> & { id: string; name: string },
)

Source from the content-addressed store, hash-verified

23}
24
25export function getDefaultServer(
26 override: Partial<Server> & { id: string; name: string },
27): Server {
28 const data: Server = {
29 icon: null,
30 kickedTime: null,
31 bitfield: 0,
32 description: null,
33 vanityUrl: null,
34 customDomain: null,
35 stripeCustomerId: null,
36 stripeSubscriptionId: null,
37 plan: 'FREE',
38 vanityInviteCode: null,
39 approximateMemberCount: 0,
40 ...override,
41 };
42 return data;
43}
44
45export function mergeServerFlags(
46 old: number,

Callers 3

mockServerFunction · 0.90
toAOServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected