MCPcopy
hub / github.com/fosrl/pangolin / setHostMeta

Function setHostMeta

server/lib/hostMeta.ts:7–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5let gotHostMeta: HostMeta | undefined;
6
7export async function setHostMeta() {
8 const [existing] = await db.select().from(hostMeta).limit(1);
9
10 if (existing && existing.hostMetaId) {
11 return;
12 }
13
14 const id = uuidv4();
15
16 await db
17 .insert(hostMeta)
18 .values({ hostMetaId: id, createdAt: new Date().getTime() });
19}
20
21export async function getHostMeta() {
22 if (gotHostMeta) {

Callers 3

startServersFunction · 0.90
license.tsFile · 0.90
license.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected