MCPcopy Index your code
hub / github.com/numbersprotocol/nit / push

Function push

src/commitdb.ts:124–131  ·  view source on GitHub ↗
(commitDbUpdateUrl: string, assetCid: string, commitDbCommitUrl: string)

Source from the content-addressed store, hash-verified

122}
123
124export async function push(commitDbUpdateUrl: string, assetCid: string, commitDbCommitUrl: string) {
125 const data = {
126 "assetCid": assetCid,
127 "dbEndpointUrl": commitDbCommitUrl,
128 };
129 const r = await httpPost(commitDbUpdateUrl, data);
130 return r;
131}

Callers

nothing calls this directly

Calls 1

httpPostFunction · 0.85

Tested by

no test coverage detected