MCPcopy Create free account
hub / github.com/6dylan6/jdm / getstatus

Function getstatus

function/sendNotify.js:2208–2224  ·  view source on GitHub ↗
(eid)

Source from the content-addressed store, hash-verified

2206};
2207
2208async function getstatus(eid){
2209 const envs = await getEnvs();
2210 var tempid = 0;
2211 for (let i = 0; i < envs.length; i++) {
2212 tempid = 0;
2213 if (envs[i]._id) {
2214 tempid = envs[i]._id;
2215 }
2216 if (envs[i].id) {
2217 tempid = envs[i].id;
2218 }
2219 if (tempid == eid) {
2220 return envs[i].status;
2221 }
2222 }
2223 return 99;
2224};
2225
2226async function getEnvById(eid){
2227 const envs = await getEnvs();

Callers

nothing calls this directly

Calls 1

getEnvsFunction · 0.85

Tested by

no test coverage detected