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

Function updateEnv

function/sendNotify.js:2134–2153  ·  view source on GitHub ↗
(cookie, eid, remarks)

Source from the content-addressed store, hash-verified

2132}
2133
2134async function updateEnv(cookie, eid, remarks){
2135 const token = await getToken();
2136 const body = await api({
2137 method: 'put',
2138 url: 'api/envs',
2139 params: { t: Date.now() },
2140 json: {
2141 name: 'JD_COOKIE',
2142 value: cookie,
2143 _id: eid,
2144 remarks,
2145 },
2146 headers: {
2147 Accept: 'application/json',
2148 authorization: `Bearer ${token}`,
2149 'Content-Type': 'application/json;charset=UTF-8',
2150 },
2151 }).json();
2152 return body;
2153};
2154
2155async function updateEnv11(cookie, eid, remarks){
2156 const token = await getToken();

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
getTokenFunction · 0.70

Tested by

no test coverage detected