This commit is contained in:
Peter Clement 2022-10-19 16:11:25 +01:00
parent 5732c80a8a
commit dbd67d251c
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,6 @@
Table,
Modal,
} from "@budibase/bbui"
import { onMount } from "svelte"
import { backups } from "stores/portal"
import { createPaginationStore } from "helpers/pagination"
import DatasourceRenderer from "./DatasourceRenderer.svelte"

View File

@ -21,7 +21,7 @@ export function createBackupsStore() {
}
async function searchBackups(appId, trigger, page) {
return API.searchBackups({appId, trigger, page})
return API.searchBackups({ appId, trigger, page })
}
async function createManualBackup(appId, name) {

View File

@ -2,13 +2,14 @@ export const buildBackupsEndpoints = API => ({
/**
* Gets a list of users in the current tenant.
*/
searchBackups: async ({appId, trigger, page}) => {
searchBackups: async ({ appId, trigger, page }) => {
console.log(page)
return await API.post({
url: `/api/apps/${appId}/backups/search`,
body: {
page,
}
trigger,
},
})
},