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

Function updateLbMemory

backend/src/dal/user.ts:444–459  ·  view source on GitHub ↗
(
  uid: string,
  mode: Mode,
  mode2: Mode2<Mode>,
  language: string,
  rank: number,
)

Source from the content-addressed store, hash-verified

442}
443
444export async function updateLbMemory(
445 uid: string,
446 mode: Mode,
447 mode2: Mode2<Mode>,
448 language: string,
449 rank: number,
450): Promise<void> {
451 const partialUpdate = {};
452 partialUpdate[`lbMemory.${mode}.${mode2}.${language}`] = rank;
453
454 await updateUser(
455 { uid },
456 { $set: partialUpdate },
457 { stack: "update lb memory" },
458 );
459}
460
461export async function checkIfPb(
462 uid: string,

Callers

nothing calls this directly

Calls 1

updateUserFunction · 0.70

Tested by

no test coverage detected