MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / getInstances

Method getInstances

daemon/src/service/system_instance.ts:369–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367 }
368
369 getInstances() {
370 let newArr = new Array<Instance>();
371 this.instances.forEach((instance) => {
372 if (!this.isGlobalInstance(instance)) newArr.push(instance);
373 });
374 newArr = newArr.sort((a, b) => (a.config.nickname > a.config.nickname ? 1 : -1));
375 return newArr;
376 }
377
378 isGlobalInstance(instance: Instance) {
379 return (

Callers 3

app.tsFile · 0.80
info_router.tsFile · 0.80
Instance_router.tsFile · 0.80

Calls 2

isGlobalInstanceMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected