Fixing issue with metadata name not being provided for uploaded backup on publish.
This commit is contained in:
parent
a1065cc143
commit
2eebd077e7
|
@ -49,7 +49,7 @@ async function exportProcessor(job: Job) {
|
||||||
const data: AppBackupQueueData = job.data
|
const data: AppBackupQueueData = job.data
|
||||||
const appId = data.appId,
|
const appId = data.appId,
|
||||||
trigger = data.export!.trigger,
|
trigger = data.export!.trigger,
|
||||||
name = data.export!.name
|
name = data.export!.name || `${trigger} - backup`
|
||||||
const tenantId = tenancy.getTenantIDFromAppID(appId)
|
const tenantId = tenancy.getTenantIDFromAppID(appId)
|
||||||
await tenancy.doInTenant(tenantId, async () => {
|
await tenancy.doInTenant(tenantId, async () => {
|
||||||
const createdAt = new Date().toISOString()
|
const createdAt = new Date().toISOString()
|
||||||
|
|
Loading…
Reference in New Issue