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

Function getEnvById

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

Source from the content-addressed store, hash-verified

2224};
2225
2226async function getEnvById(eid){
2227 const envs = await getEnvs();
2228 var tempid = 0;
2229 for (let i = 0; i < envs.length; i++) {
2230 tempid = 0;
2231 if (envs[i]._id) {
2232 tempid = envs[i]._id;
2233 }
2234 if (envs[i].id) {
2235 tempid = envs[i].id;
2236 }
2237 if (tempid == eid) {
2238 return envs[i].value;
2239 }
2240 }
2241 return "";
2242};
2243
2244async function getEnvByPtPin(Ptpin){
2245 const envs = await getEnvs();

Callers

nothing calls this directly

Calls 1

getEnvsFunction · 0.85

Tested by

no test coverage detected