MCPcopy Create free account
hub / github.com/MALSync/MALSync / fillFromApi

Function fillFromApi

src/utils/quicklinksBuilder.ts:107–116  ·  view source on GitHub ↗
(combined, type, id)

Source from the content-addressed store, hash-verified

105}
106
107async function fillFromApi(combined, type, id) {
108 const mal = await getMalToKissApi(type, id);
109
110 return combined.map(el => {
111 if (el.database && mal[el.database]) {
112 el.databaseLinks = mal[el.database];
113 }
114 return el;
115 });
116}
117
118function simplifyObject(combined, type, title, id): Quicklink[] {
119 return combined

Callers 1

activeLinksFunction · 0.85

Calls 1

getMalToKissApiFunction · 0.85

Tested by

no test coverage detected