MCPcopy Create free account
hub / github.com/chavyleung/scripts / apiDeleteAppSub

Function apiDeleteAppSub

box/chavy.boxjs.js:824–831  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

822}
823
824async function apiDeleteAppSub() {
825 const sub = $.toObj($request.body)
826 // 添加订阅
827 const usercfgs = getUserCfgs()
828 usercfgs.appsubs = usercfgs.appsubs.filter((e) => e.url !== sub.url)
829 $.setjson(usercfgs, $.KEY_usercfgs)
830 $.json = getBoxData()
831}
832
833async function apiReloadAppSub() {
834 const sub = $.toObj($request.body)

Callers

nothing calls this directly

Calls 4

getUserCfgsFunction · 0.70
getBoxDataFunction · 0.70
toObjMethod · 0.45
setjsonMethod · 0.45

Tested by

no test coverage detected