diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCE.java index 800d3287da01..6dc6863bdd9d 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCE.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCE.java @@ -138,6 +138,8 @@ Mono updateActionsWithImportedCollectionIds( Flux findByPageIds(List unpublishedPages, Optional optionalPermission); + Flux findByPageIdsForExport(List unpublishedPages, Optional optionalPermission); + Flux findAllActionsByContextIdAndContextTypeAndViewMode( String contextId, CreatorContextType contextType, diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java index 5a8bf766c88b..0312804c4922 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java @@ -1759,6 +1759,12 @@ public Flux findByPageIds(List unpublishedPages, Optional findByPageIdsForExport( + List unpublishedPages, Optional optionalPermission) { + return repository.findByPageIds(unpublishedPages, optionalPermission); + } + @Override public Flux findAllActionsByContextIdAndContextTypeAndViewMode( String contextId, diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/exports/NewActionExportableServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/exports/NewActionExportableServiceCEImpl.java index 210803b59c65..e7ac24fe164d 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/exports/NewActionExportableServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/exports/NewActionExportableServiceCEImpl.java @@ -38,8 +38,8 @@ public NewActionExportableServiceCEImpl(NewActionService newActionService, Actio } // Requires datasourceIdToNameMap, pageIdToNameMap, pluginMap, collectionIdToNameMap - // Updates actionId to name map in exportable resources. Also directly updates required collection information in - // application json + // Updates actionId to name map in exportable resources. + // Also, directly updates required collection information in application json @Override public Mono getExportableEntities( ExportingMetaDTO exportingMetaDTO, @@ -51,7 +51,7 @@ public Mono getExportableEntities( exportingMetaDTO.getIsGitSync(), exportingMetaDTO.getExportWithConfiguration())); Flux actionFlux = - newActionService.findByPageIds(exportingMetaDTO.getUnpublishedPages(), optionalPermission); + newActionService.findByPageIdsForExport(exportingMetaDTO.getUnpublishedPages(), optionalPermission); return actionFlux .collectList()