MCPcopy Create free account
hub / github.com/Moli-X/Resources / adapterStatus

Function adapterStatus

Script/JD/JdPrice.js:246–255  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

244 if (isSurge) return $persistentStore.read(key)
245 }
246 const adapterStatus = (response) => {
247 if (response) {
248 if (response.status) {
249 response["statusCode"] = response.status
250 } else if (response.statusCode) {
251 response["status"] = response.statusCode
252 }
253 }
254 return response
255 }
256 const get = (options, callback) => {
257 if (isQuanX) {
258 if (typeof options == "string") options = { url: options }

Callers 2

getFunction · 0.70
postFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected