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

Function listUpdateWithPOST

src/background/releaseProgress.ts:89–107  ·  view source on GitHub ↗
(state, type)

Source from the content-addressed store, hash-verified

87}
88
89async function listUpdateWithPOST(state, type) {
90 const logger = con.m('release').m(type);
91 logger.log('Start', type, state);
92 const listProvider = await getList(state, type);
93 return listProvider
94 .getCompleteList()
95 .then(async list => {
96 if (list.length > 0) {
97 try {
98 await multiple(list, type, logger);
99 } catch (e) {
100 logger.error(e);
101 }
102 }
103 })
104 .catch(e => {
105 logger.error(e);
106 });
107}
108
109async function multiple(Array: listElement[], type, logger = con.m('release')) {
110 if (!Array) {

Callers 1

mainFunction · 0.85

Calls 3

getListFunction · 0.90
multipleFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected