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

Function updateEnv11

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

Source from the content-addressed store, hash-verified

2153};
2154
2155async function updateEnv11(cookie, eid, remarks){
2156 const token = await getToken();
2157 const body = await api({
2158 method: 'put',
2159 url: 'api/envs',
2160 params: { t: Date.now() },
2161 json: {
2162 name: 'JD_COOKIE',
2163 value: cookie,
2164 id: eid,
2165 remarks,
2166 },
2167 headers: {
2168 Accept: 'application/json',
2169 authorization: `Bearer ${token}`,
2170 'Content-Type': 'application/json;charset=UTF-8',
2171 },
2172 }).json();
2173 return body;
2174};
2175
2176async function DisableCk(eid){
2177 const token = await getToken();

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
getTokenFunction · 0.70

Tested by

no test coverage detected