( uid: string, timestamp: number, )
| 92 | } |
| 93 | |
| 94 | export 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 | |
| 103 | type GetResultsOpts = { |
| 104 | onOrAfterTimestamp?: number; |
nothing calls this directly
no test coverage detected