Fixing issue with metadata name not being provided for uploaded backup on publish.

This commit is contained in:
mike12345567 2022-10-19 13:52:56 +01:00
parent f5845a8a6e
commit 59bf052b70
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ async function exportProcessor(job: Job) {
const data: AppBackupQueueData = job.data
const appId = data.appId,
trigger = data.export!.trigger,
name = data.export!.name
name = data.export!.name || `${trigger} - backup`
const tenantId = tenancy.getTenantIDFromAppID(appId)
await tenancy.doInTenant(tenantId, async () => {
const createdAt = new Date().toISOString()