同步处理
This commit is contained in:
1 parent
9939943e31
commit
6494ad2918
26 files changed
+970
-40
No files matched your search
@@ -3,11 +3,14 @@ import { createApiError } from '../../../utils/api-error'
|
||||
import { serializeBackupJob } from '../../../utils/backup/api'
|
||||
import { getBackupExportEstimate } from '../../../utils/backup/stats'
|
||||
import { startFullExportJob } from '../../../utils/backup/runner'
|
||||
import { resolveRuntimeAppVersion } from '../../../utils/app-version'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const user = await requireAdminAuth(event)
|
||||
const config = useRuntimeConfig(event)
|
||||
const appVersion = String(config.appVersion ?? '0.0.0')
|
||||
const appVersion = resolveRuntimeAppVersion(
|
||||
String(config.appVersion ?? '0.0.0')
|
||||
)
|
||||
|
||||
const estimate = await getBackupExportEstimate()
|
||||
|
||||
|
||||
Reference in new issue
Block a user