@@ -614,7 +614,7 @@ const initialState: EventDetailsState = {
614614
615615export const fetchMetadata = createAppAsyncThunk ( "eventDetails/fetchMetadata" , async ( eventId : Event [ "id" ] ) => {
616616 const metadataRequest = await axios . get < ( MetadataCatalog & { locked ?: string } ) [ ] > ( `/admin-ng/event/${ eventId } /metadata.json` ) ;
617- const metadataResponse = await metadataRequest . data ;
617+ const metadataResponse = metadataRequest . data ;
618618
619619 const mainCatalog = "dublincore/episode" ;
620620 let metadata : MetadataCatalog = {
@@ -660,7 +660,7 @@ export const fetchAssets = createAppAsyncThunk("eventDetails/fetchAssets", async
660660 const assetsRequest = await axios . get < EventDetailsState [ "assets" ] > (
661661 `/admin-ng/event/${ eventId } /asset/assets.json` ,
662662 ) ;
663- const assets = await assetsRequest . data ;
663+ const assets = assetsRequest . data ;
664664
665665 let transactionsReadOnly = true ;
666666 const fetchTransactionResult = await dispatch ( fetchHasActiveTransactions ( eventId ) )
@@ -672,7 +672,7 @@ export const fetchAssets = createAppAsyncThunk("eventDetails/fetchAssets", async
672672 const resourceOptionsListRequest = await axios . get < { [ key : string ] : string } > (
673673 "/admin-ng/resources/eventUploadAssetOptions.json" ,
674674 ) ;
675- const resourceOptionsListResponse = await resourceOptionsListRequest . data ;
675+ const resourceOptionsListResponse = resourceOptionsListRequest . data ;
676676
677677 const optionsData = formatUploadAssetOptions ( resourceOptionsListResponse ) ;
678678
@@ -754,7 +754,7 @@ export const fetchAssetAttachments = createAppAsyncThunk("eventDetails/fetchAsse
754754 `/admin-ng/event/${ eventId } /asset/attachment/attachments.json` ,
755755 { params } ,
756756 ) ;
757- return await attachmentsRequest . data ;
757+ return attachmentsRequest . data ;
758758} ) ;
759759
760760export const fetchAssetAttachmentDetails = createAppAsyncThunk ( "eventDetails/fetchAssetAttachmentDetails" , async ( params : {
@@ -769,7 +769,7 @@ export const fetchAssetAttachmentDetails = createAppAsyncThunk("eventDetails/fet
769769 `/admin-ng/event/${ eventId } /asset/attachment/${ attachmentId } .json` ,
770770 { params } ,
771771 ) ;
772- return await attachmentDetailsRequest . data ;
772+ return attachmentDetailsRequest . data ;
773773} ) ;
774774
775775export const fetchAssetCatalogs = createAppAsyncThunk ( "eventDetails/fetchAssetCatalogs" , async ( eventId : Event [ "id" ] ) => {
@@ -780,7 +780,7 @@ export const fetchAssetCatalogs = createAppAsyncThunk("eventDetails/fetchAssetCa
780780 `/admin-ng/event/${ eventId } /asset/catalog/catalogs.json` ,
781781 { params } ,
782782 ) ;
783- return await catalogsRequest . data ;
783+ return catalogsRequest . data ;
784784} ) ;
785785
786786export const fetchAssetCatalogDetails = createAppAsyncThunk ( "eventDetails/fetchAssetCatalogDetails" , async ( params : {
@@ -795,7 +795,7 @@ export const fetchAssetCatalogDetails = createAppAsyncThunk("eventDetails/fetchA
795795 `/admin-ng/event/${ eventId } /asset/catalog/${ catalogId } .json` ,
796796 { params } ,
797797 ) ;
798- return await catalogDetailsRequest . data ;
798+ return catalogDetailsRequest . data ;
799799} ) ;
800800
801801export const fetchAssetMedia = createAppAsyncThunk ( "eventDetails/fetchAssetMedia" , async ( eventId : Event [ "id" ] ) => {
@@ -813,7 +813,7 @@ export const fetchAssetMedia = createAppAsyncThunk("eventDetails/fetchAssetMedia
813813 `/admin-ng/event/${ eventId } /asset/media/media.json` ,
814814 { params } ,
815815 ) ;
816- const mediaResponse = await mediaRequest . data ;
816+ const mediaResponse = mediaRequest . data ;
817817
818818 const media : EventDetailsState [ "assetMedia" ] = [ ] ;
819819
@@ -844,7 +844,7 @@ export const fetchAssetMediaDetails = createAppAsyncThunk("eventDetails/fetchAss
844844 `/admin-ng/event/${ eventId } /asset/media/${ mediaId } .json` ,
845845 { params } ,
846846 ) ;
847- const mediaDetailsResponse = await mediaDetailsRequest . data ;
847+ const mediaDetailsResponse = mediaDetailsRequest . data ;
848848
849849 let mediaDetails : EventDetailsState [ "assetMediaDetails" ] ;
850850
@@ -877,7 +877,7 @@ export const fetchAssetPublications = createAppAsyncThunk("eventDetails/fetchAss
877877 `/admin-ng/event/${ eventId } /asset/publication/publications.json` ,
878878 { params } ,
879879 ) ;
880- return await publicationsRequest . data ;
880+ return publicationsRequest . data ;
881881} ) ;
882882
883883export const fetchAssetPublicationDetails = createAppAsyncThunk ( "eventDetails/fetchAssetPublicationDetails" , async ( params : {
@@ -892,7 +892,7 @@ export const fetchAssetPublicationDetails = createAppAsyncThunk("eventDetails/fe
892892 `/admin-ng/event/${ eventId } /asset/publication/${ publicationId } .json` ,
893893 { params } ,
894894 ) ;
895- return await publicationDetailsRequest . data ;
895+ return publicationDetailsRequest . data ;
896896} ) ;
897897
898898export const fetchAccessPolicies = createAppAsyncThunk ( "eventDetails/fetchAccessPolicies" , async ( id : Event [ "id" ] ) => {
@@ -905,7 +905,7 @@ export const fetchAccessPolicies = createAppAsyncThunk("eventDetails/fetchAccess
905905 const policyData = await axios . get < FetchAccessPolicies > (
906906 `/admin-ng/event/${ id } /access.json` ,
907907 ) ;
908- const accessPolicies = await policyData . data ;
908+ const accessPolicies = policyData . data ;
909909
910910 let policies : TransformedAcl [ ] = [ ] ;
911911 let currentAclTemplateId = 0 ;
@@ -920,12 +920,12 @@ export const fetchAccessPolicies = createAppAsyncThunk("eventDetails/fetchAccess
920920
921921export const fetchComments = createAppAsyncThunk ( "eventDetails/fetchComments" , async ( eventId : Event [ "id" ] ) => {
922922 const commentsData = await axios . get < Comment [ ] > ( `/admin-ng/event/${ eventId } /comments` ) ;
923- const comments = await commentsData . data ;
923+ const comments = commentsData . data ;
924924
925925 const commentReasonsData = await axios . get < { eventCommentReasons : { [ key : string ] : string } } > (
926926 "/admin-ng/resources/components.json" ,
927927 ) ;
928- const commentReasons = ( await commentReasonsData . data ) . eventCommentReasons ;
928+ const commentReasons = ( commentReasonsData . data ) . eventCommentReasons ;
929929
930930 return { comments, commentReasons } ;
931931} ) ;
@@ -942,7 +942,7 @@ export const fetchEventPublications = createAppAsyncThunk("eventDetails/fetchEve
942942 } ;
943943 const data = await axios . get < FetchEventPublications > ( `/admin-ng/event/${ eventId } /publications.json` ) ;
944944
945- const publications = await data . data ;
945+ const publications = data . data ;
946946
947947 return await dispatch ( enrichPublications ( publications ) ) . unwrap ( ) ;
948948} ) ;
@@ -1023,7 +1023,7 @@ export const fetchSchedulingInfo = createAppAsyncThunk("eventDetails/fetchSchedu
10231023 const schedulingRequest = await axios . get < FetchSchedulingInfo > (
10241024 `/admin-ng/event/${ eventId } /scheduling.json` ,
10251025 ) ;
1026- const schedulingResponse = await schedulingRequest . data ;
1026+ const schedulingResponse = schedulingRequest . data ;
10271027
10281028 // get data from API about capture agents
10291029 await dispatch ( fetchRecordings ( "inputs" ) ) ;
@@ -1309,7 +1309,7 @@ export const fetchWorkflows = createAppAsyncThunk("eventDetails/fetchWorkflows",
13091309 workflowId : string
13101310 }
13111311 const data = await axios . get < FetchWorkflows > ( `/admin-ng/event/${ eventId } /workflows.json` ) ;
1312- const workflowsData = await data . data ;
1312+ const workflowsData = data . data ;
13131313 let workflows : Workflow ;
13141314
13151315 if ( "results" in workflowsData ) {
@@ -1354,7 +1354,7 @@ export const fetchWorkflowDetails = createAppAsyncThunk("eventDetails/fetchWorkf
13541354 const data = await axios . get < EventDetailsState [ "workflows" ] [ "workflow" ] > (
13551355 `/admin-ng/event/${ eventId } /workflows/${ workflowId } .json` ,
13561356 ) ;
1357- return await data . data ;
1357+ return data . data ;
13581358} ) ;
13591359
13601360export const performWorkflowAction = createAppAsyncThunk ( "eventDetails/performWorkflowAction" , async ( params : {
@@ -1458,7 +1458,7 @@ export const fetchWorkflowOperations = createAppAsyncThunk("eventDetails/fetchWo
14581458 const data = await axios . get < EventDetailsState [ "workflowOperations" ] [ "entries" ] > (
14591459 `/admin-ng/event/${ eventId } /workflows/${ workflowId } /operations.json` ,
14601460 ) ;
1461- const workflowOperationsData = await data . data ;
1461+ const workflowOperationsData = data . data ;
14621462 return { entries : workflowOperationsData } ;
14631463} ) ;
14641464
@@ -1504,7 +1504,7 @@ export const fetchWorkflowOperationDetails = createAppAsyncThunk("eventDetails/f
15041504 const data = await axios . get < EventDetailsState [ "workflowOperationDetails" ] > (
15051505 `/admin-ng/event/${ eventId } /workflows/${ workflowId } /operations/${ operationId } ` ,
15061506 ) ;
1507- return await data . data ;
1507+ return data . data ;
15081508} ) ;
15091509
15101510export const fetchWorkflowErrors = createAppAsyncThunk ( "eventDetails/fetchWorkflowErrors" , async ( params : {
@@ -1515,7 +1515,7 @@ export const fetchWorkflowErrors = createAppAsyncThunk("eventDetails/fetchWorkfl
15151515 const data = await axios . get < EventDetailsState [ "workflowErrors" ] [ "entries" ] > (
15161516 `/admin-ng/event/${ eventId } /workflows/${ workflowId } /errors.json` ,
15171517 ) ;
1518- const workflowErrorsData = await data . data ;
1518+ const workflowErrorsData = data . data ;
15191519 return { entries : workflowErrorsData } ;
15201520} ) ;
15211521
@@ -1528,7 +1528,7 @@ export const fetchWorkflowErrorDetails = createAppAsyncThunk("eventDetails/fetch
15281528 const data = await axios . get < EventDetailsState [ "workflowErrorDetails" ] > (
15291529 `/admin-ng/event/${ eventId } /workflows/${ workflowId } /errors/${ errorId } .json` ,
15301530 ) ;
1531- return await data . data ;
1531+ return data . data ;
15321532} ) ;
15331533
15341534// TODO: Fix this after the modernization of statisticsThunks happened
@@ -1638,7 +1638,7 @@ export const fetchHasActiveTransactions = createAppAsyncThunk("eventDetails/fetc
16381638 const transactionsData = await axios . get < { active : boolean } > (
16391639 `/admin-ng/event/${ eventId } /hasActiveTransaction` ,
16401640 ) ;
1641- const hasActiveTransactions = await transactionsData . data ;
1641+ const hasActiveTransactions = transactionsData . data ;
16421642 return hasActiveTransactions ;
16431643} ) ;
16441644
0 commit comments