feat: backup improvements
All checks were successful
Deploy to Staging / Build Images (push) Successful in 4m31s
Deploy to Staging / Deploy to Staging (push) Successful in 37s
Deploy to Staging / Verify Staging (push) Successful in 6s
Deploy to Staging / Notify Staging Ready (push) Successful in 6s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
All checks were successful
Deploy to Staging / Build Images (push) Successful in 4m31s
Deploy to Staging / Deploy to Staging (push) Successful in 37s
Deploy to Staging / Verify Staging (push) Successful in 6s
Deploy to Staging / Notify Staging Ready (push) Successful in 6s
Deploy to Staging / Notify Staging Failure (push) Has been skipped
This commit is contained in:
@@ -48,6 +48,7 @@ import {
|
||||
CreateScheduleRequest,
|
||||
UpdateScheduleRequest,
|
||||
RestorePreviewResponse,
|
||||
ExecuteRestoreRequest,
|
||||
} from '../types/admin.types';
|
||||
|
||||
export interface AuditLogsResponse {
|
||||
@@ -408,9 +409,10 @@ export const adminApi = {
|
||||
},
|
||||
|
||||
// Execute restore
|
||||
restore: async (id: string): Promise<{ message: string }> => {
|
||||
restore: async (id: string, options?: ExecuteRestoreRequest): Promise<{ message: string }> => {
|
||||
const response = await apiClient.post<{ message: string }>(
|
||||
`/admin/backups/${id}/restore`
|
||||
`/admin/backups/${id}/restore`,
|
||||
options
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user