From a5ec8600b9f06094ac2ba43a9c02e3f9c0644317 Mon Sep 17 00:00:00 2001 From: Nilansh Bansal Date: Mon, 21 Nov 2022 15:55:30 +0530 Subject: [PATCH] fix: Fixed error message mentioning the wrong resource type (#18308) --- .../server/services/ce/ActionCollectionServiceCEImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ActionCollectionServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ActionCollectionServiceCEImpl.java index e22907a340..1038952a74 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ActionCollectionServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/ActionCollectionServiceCEImpl.java @@ -424,7 +424,7 @@ public class ActionCollectionServiceCEImpl extends BaseService archiveById(String id) { Mono actionCollectionMono = repository.findById(id) - .switchIfEmpty(Mono.error(new AppsmithException(AppsmithError.NO_RESOURCE_FOUND, FieldName.ACTION, id))) + .switchIfEmpty(Mono.error(new AppsmithException(AppsmithError.NO_RESOURCE_FOUND, FieldName.ACTION_COLLECTION, id))) .cache(); return actionCollectionMono .map(actionCollection -> {