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

Function delEnv

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

Source from the content-addressed store, hash-verified

2253};
2254
2255async function delEnv(eid){
2256 const token = await getToken();
2257 const body = await api({
2258 method: 'delete',
2259 url: 'api/envs',
2260 params: { t: Date.now() },
2261 body: JSON.stringify([eid]),
2262 headers: {
2263 Accept: 'application/json',
2264 authorization: `Bearer ${token}`,
2265 'Content-Type': 'application/json;charset=UTF-8',
2266 },
2267 }).json();
2268 return body;
2269};
2270module.exports = {
2271 sendNotify,
2272 sendNotifybyWxPucher,

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
getTokenFunction · 0.70

Tested by

no test coverage detected