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 49bc7da4ec..3ae375bd95 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 @@ -206,7 +206,16 @@ public class NewActionServiceCEImpl extends BaseService newActionImportableService; + @Autowired + private Gson gson; + Long applicationCount = 0L, pageCount = 0L, actionCount = 0L, actionCollectionCount = 0L; private ApplicationJson applicationJson = new ApplicationJson(); @@ -123,7 +126,6 @@ public class ImportApplicationTransactionServiceTest { return stringifiedFile .map(data -> { - Gson gson = new Gson(); return gson.fromJson(data, ApplicationJson.class); }) .map(JsonSchemaMigration::migrateApplicationToLatestSchema); diff --git a/app/server/appsmith-server/src/test/resources/test_assets/ImportExportServiceTest/valid-application.json b/app/server/appsmith-server/src/test/resources/test_assets/ImportExportServiceTest/valid-application.json index e341ac8d6d..97d1ade72c 100644 --- a/app/server/appsmith-server/src/test/resources/test_assets/ImportExportServiceTest/valid-application.json +++ b/app/server/appsmith-server/src/test/resources/test_assets/ImportExportServiceTest/valid-application.json @@ -519,7 +519,8 @@ "invalids": [], "jsonPathKeys": [], "confirmBeforeExecute": false, - "userPermissions": [] + "userPermissions": [], + "createdAt": "2023-12-13T12:10:02Z" }, "publishedAction": { "name": "api_wo_auth",