()
| 786 | } |
| 787 | |
| 788 | async function apiDelGlobalBak() { |
| 789 | const backup = $.toObj($request.body) |
| 790 | const backups = $.getjson($.KEY_backups, []) |
| 791 | const bakIdx = backups.findIndex((b) => b.id === backup.id) |
| 792 | if (bakIdx > -1) { |
| 793 | backups.splice(bakIdx, 1) |
| 794 | $.setdata('', backup.id) |
| 795 | $.setjson(backups, $.KEY_backups) |
| 796 | } |
| 797 | $.json = getBoxData() |
| 798 | } |
| 799 | |
| 800 | async function apiUpdateGlobalBak() { |
| 801 | const { id: backupId, name: backupName } = $.toObj($request.body) |
nothing calls this directly
no test coverage detected
searching dependent graphs…