MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MDX / getUserNotes

Function getUserNotes

plugins/notes.ts:12–19  ·  view source on GitHub ↗
(userId: any)

Source from the content-addressed store, hash-verified

10const notesDB = {};
11
12async function getUserNotes(userId: any) {
13 if (HAS_DB) {
14 const notes = await store.getSetting(userId, 'notes');
15 return (notes as any) || [];
16 } else {
17 return (notesDB as any)[userId] || [];
18 }
19}
20
21async function saveUserNotes(userId: any, notes: any) {
22 if (HAS_DB) {

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected