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

Function convert

backend/src/api/controllers/connections.ts:18–20  ·  view source on GitHub ↗
(db: ConnectionsDal.DBConnection)

Source from the content-addressed store, hash-verified

16import { Connection } from "@monkeytype/schemas/connections";
17
18function convert(db: ConnectionsDal.DBConnection): Connection {
19 return replaceObjectId(omit(db, ["key"]));
20}
21export async function getConnections(
22 req: MonkeyRequest<GetConnectionsQuery>,
23): Promise<GetConnectionsResponse> {

Callers 1

createConnectionFunction · 0.70

Calls 2

replaceObjectIdFunction · 0.90
omitFunction · 0.90

Tested by

no test coverage detected