Skip to content

Commit 340d09b

Browse files
convert to string for backup tasks
1 parent ac76cb8 commit 340d09b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/views/tenant/backup/CreateBackup.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const CreateBackup = () => {
2727

2828
const onSubmit = (values) => {
2929
const startDate = new Date()
30-
//decrease by 45 seconds to ensure the task runs after the current time
30+
startDate.setHours(0, 0, 0, 0)
3131
const unixTime = Math.floor(startDate.getTime() / 1000) - 45
3232
const shippedValues = {
3333
TenantFilter: tenantDomain,

src/views/tenant/backup/RestoreBackup.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const OffboardingWizard = () => {
3737
isFetching: currentBackupsIsFetching,
3838
error: currentBackupsError,
3939
} = useGenericGetRequestQuery({
40-
path: `/api/ExecListBackup?TenantFilter=${tenantDomain}&Type=Scheduled`,
40+
path: `/api/ExecListBackup?TenantFilter=${tenantDomain}`,
4141
})
4242

4343
const [genericPostRequest, postResults] = useLazyGenericPostRequestQuery()
@@ -96,7 +96,7 @@ const OffboardingWizard = () => {
9696
<RFFSelectSearch
9797
multi={false}
9898
label={'Backups for ' + tenantDomain}
99-
values={currentBackups?.Results?.map((backup) => ({
99+
values={currentBackups?.map((backup) => ({
100100
value: backup.RowKey,
101101
name: `${backup.BackupDate}`,
102102
}))}

0 commit comments

Comments
 (0)