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

Function getFavoriteQuotes

backend/src/dal/user.ts:802–810  ·  view source on GitHub ↗
(
  uid: string,
)

Source from the content-addressed store, hash-verified

800}
801
802export async function getFavoriteQuotes(
803 uid: string,
804): Promise<NonNullable<DBUser["favoriteQuotes"]>> {
805 const user = await getPartialUser(uid, "get favorite quotes", [
806 "favoriteQuotes",
807 ]);
808
809 return user.favoriteQuotes ?? {};
810}
811
812export async function addFavoriteQuote(
813 uid: string,

Callers

nothing calls this directly

Calls 1

getPartialUserFunction · 0.85

Tested by

no test coverage detected