()
| 798 | } |
| 799 | |
| 800 | async 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 | |
| 811 | async function apiRevertGlobalBak() { |
| 812 | const { id: bakcupId } = $.toObj($request.body) |
nothing calls this directly
no test coverage detected
searching dependent graphs…