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

Function cleanApeKey

backend/src/api/controllers/ape-key.ts:19–21  ·  view source on GitHub ↗
(apeKey: ApeKeysDAL.DBApeKey)

Source from the content-addressed store, hash-verified

17import { MonkeyRequest } from "../types";
18
19function cleanApeKey(apeKey: ApeKeysDAL.DBApeKey): ApeKey {
20 return omit(apeKey, ["hash", "_id", "uid", "useCount"]);
21}
22
23export async function getApeKeys(
24 req: MonkeyRequest,

Callers 2

getApeKeysFunction · 0.85
generateApeKeyFunction · 0.85

Calls 1

omitFunction · 0.90

Tested by

no test coverage detected