MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / objid

Function objid

packages/migrate/scripts/vijos.ts:347–351  ·  view source on GitHub ↗
(ts: Date)

Source from the content-addressed store, hash-verified

345}
346
347function objid(ts: Date) {
348 const p = Math.floor(ts.getTime() / 1000).toString(16);
349 const id = new mongodb.ObjectId();
350 return new mongodb.ObjectId(p + id.toHexString().slice(8, 8 + 6 + 4 + 6));
351}
352
353// FIXME this seems not working
354async function message(src: Db, report: Report) {

Callers 1

messageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected