diff --git a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/ce/ApplicationServiceCETest.java b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/ce/ApplicationServiceCETest.java index c9ff44c479..0d5aaca9a6 100644 --- a/app/server/appsmith-server/src/test/java/com/appsmith/server/services/ce/ApplicationServiceCETest.java +++ b/app/server/appsmith-server/src/test/java/com/appsmith/server/services/ce/ApplicationServiceCETest.java @@ -419,15 +419,7 @@ public class ApplicationServiceCETest { } private Mono getArchivedResource(String id, Class domainClass) { - Query query = new Query(where("id").is(id)); - - final Query actionQuery = query( - where(fieldName(QNewAction.newAction.applicationId)).exists(true)) - .addCriteria(where(fieldName(QNewAction.newAction.unpublishedAction) + "." - + fieldName(QNewAction.newAction.unpublishedAction.archivedAt)) - .exists(true)); - - return mongoOperations.findOne(query, domainClass); + return mongoOperations.findOne(new Query(where("id").is(id)), domainClass); } private List createDummyApplications(String workspaceId) {