fix: backup restore delete all files

This commit is contained in:
Matthew Penner 2021-03-12 14:47:49 -07:00
parent c8c9c3d3cb
commit 582521f419
3 changed files with 11 additions and 6 deletions

View file

@ -1,5 +1,7 @@
import http from '@/api/http';
export const restoreServerBackup = async (uuid: string, backup: string): Promise<void> => {
await http.post(`/api/client/servers/${uuid}/backups/${backup}/restore`);
export const restoreServerBackup = async (uuid: string, backup: string, truncate?: boolean): Promise<void> => {
await http.post(`/api/client/servers/${uuid}/backups/${backup}/restore`, {
truncate,
});
};