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

Function saveUserNotes

plugins/notes.ts:21–27  ·  view source on GitHub ↗
(userId: any, notes: any)

Source from the content-addressed store, hash-verified

19}
20
21async function saveUserNotes(userId: any, notes: any) {
22 if (HAS_DB) {
23 await store.saveSetting(userId, 'notes', notes);
24 } else {
25 (notesDB as any)[userId] = notes;
26 }
27}
28
29export default {
30 command: 'notes',

Callers 1

handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected