MCPcopy Create free account
hub / github.com/monkeytypegame/monkeytype / getResultByTimestamp

Function getResultByTimestamp

backend/src/dal/result.ts:94–101  ·  view source on GitHub ↗
(
  uid: string,
  timestamp: number,
)

Source from the content-addressed store, hash-verified

92}
93
94export async function getResultByTimestamp(
95 uid: string,
96 timestamp: number,
97): Promise<DBResult | null> {
98 const result = await getResultCollection().findOne({ uid, timestamp });
99 if (result === null) return null;
100 return replaceLegacyValues(result);
101}
102
103type GetResultsOpts = {
104 onOrAfterTimestamp?: number;

Callers

nothing calls this directly

Calls 2

replaceLegacyValuesFunction · 0.90
getResultCollectionFunction · 0.85

Tested by

no test coverage detected