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

Function apiImpGlobalBak

chavy.box.js:909–918  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

907}
908
909async function apiImpGlobalBak() {
910 const backups = $.getjson($.KEY_backups, [])
911 const backup = $.toObj($request.body)
912 const backupData = backup.bak
913 delete backup.bak
914 backups.push(backup)
915 $.setjson(backups, $.KEY_backups)
916 $.setjson(backupData, backup.id)
917 $.json = getBoxData()
918}
919
920async function apiRunScript() {
921 // 取消勿扰模式

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