MCPcopy Index your code
hub / github.com/MALSync/MALSync / databaseRequest

Function databaseRequest

src/background/database.ts:172–183  ·  view source on GitHub ↗
(call: string, param: any)

Source from the content-addressed store, hash-verified

170}
171
172export async function databaseRequest(call: string, param: any) {
173 switch (call) {
174 case 'entry':
175 indexUpdate();
176 return getEntry(param.type, param.id);
177 case 'entryByMalId':
178 indexUpdate();
179 return getEntryByMalId(param.type, param.id);
180 default:
181 throw `Unknown call "${call}"`;
182 }
183}

Callers 2

injectDbFunction · 0.90
messageHandlerFunction · 0.90

Calls 3

indexUpdateFunction · 0.85
getEntryFunction · 0.85
getEntryByMalIdFunction · 0.85

Tested by

no test coverage detected