1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00
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,
},
})
},