()
| 853 | } |
| 854 | |
| 855 | async function apiUpdateGlobalBak() { |
| 856 | const { id: backupId, name: backupName } = $.toObj($request.body) |
| 857 | const backups = $.getjson($.KEY_backups, []) |
| 858 | const backup = backups.find((b) => b.id === backupId) |
| 859 | if (backup) { |
| 860 | backup.name = backupName |
| 861 | $.setjson(backups, $.KEY_backups) |
| 862 | } |
| 863 | $.json = getBoxData() |
| 864 | } |
| 865 | |
| 866 | async function apiRevertGlobalBak() { |
| 867 | const { id: bakcupId } = $.toObj($request.body) |
nothing calls this directly
no test coverage detected