Skip to content

Commit

Permalink
reverted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeriaMaltseva committed Oct 28, 2024
1 parent db7ecd9 commit 4dd3ef8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/

import { useJobs } from '@Pimcore/modules/execution-engine/hooks/useJobs'
import { type AssetExportZipAssetApiArg, type AssetExportZipFolderApiArg, useAssetExportZipAssetMutation, useAssetExportZipFolderMutation } from '../../asset-api-slice-enhanced'
import { type AssetExportZipAssetApiArg, type AssetExportZipAssetApiResponse, type AssetExportZipFolderApiArg, type AssetExportZipFolderApiResponse, useAssetExportZipAssetMutation, useAssetExportZipFolderMutation } from '../../asset-api-slice-enhanced'
import { createJob } from '@Pimcore/modules/execution-engine/jobs/download/factory'
import { useTranslation } from 'react-i18next'
import { defaultTopics, topics } from '@Pimcore/modules/execution-engine/topics'
Expand Down Expand Up @@ -66,8 +66,8 @@ export const useZipDownload = (props: UseZipDownloadHookProps): UseZipDownloadHo
console.error('Failed to create zip')
})

const response = (await promise)
const data = response.data
const response = (await promise) as any
const data = response.data as AssetExportZipAssetApiResponse | AssetExportZipFolderApiResponse
return data.jobRunId
}
}))
Expand Down

0 comments on commit 4dd3ef8

Please sign in to comment.