MCPcopy
hub / github.com/chavyleung/scripts / apiImpGlobalBak

Function apiImpGlobalBak

chavy.box.js:854–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

852}
853
854async function apiImpGlobalBak() {
855 const backups = $.getjson($.KEY_backups, [])
856 const backup = $.toObj($request.body)
857 const backupData = backup.bak
858 delete backup.bak
859 backups.push(backup)
860 $.setjson(backups, $.KEY_backups)
861 $.setjson(backupData, backup.id)
862 $.json = getBoxData()
863}
864
865async function apiRunScript() {
866 // 取消勿扰模式

Callers

nothing calls this directly

Calls 4

getBoxDataFunction · 0.70
getjsonMethod · 0.45
toObjMethod · 0.45
setjsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…