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, Table,
Modal, Modal,
} from "@budibase/bbui" } from "@budibase/bbui"
import { onMount } from "svelte"
import { backups } from "stores/portal" import { backups } from "stores/portal"
import { createPaginationStore } from "helpers/pagination" import { createPaginationStore } from "helpers/pagination"
import DatasourceRenderer from "./DatasourceRenderer.svelte" import DatasourceRenderer from "./DatasourceRenderer.svelte"

View File

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

View File

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