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

Function apiUpdateGlobalBak

chavy.box.js:800–809  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

798}
799
800async function apiUpdateGlobalBak() {
801 const { id: backupId, name: backupName } = $.toObj($request.body)
802 const backups = $.getjson($.KEY_backups, [])
803 const backup = backups.find((b) => b.id === backupId)
804 if (backup) {
805 backup.name = backupName
806 $.setjson(backups, $.KEY_backups)
807 }
808 $.json = getBoxData()
809}
810
811async function apiRevertGlobalBak() {
812 const { id: bakcupId } = $.toObj($request.body)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…