fix: Fixed error message mentioning the wrong resource type (#18308)

This commit is contained in:
Nilansh Bansal 2022-11-21 15:55:30 +05:30 committed by GitHub
parent d96019cbb1
commit a5ec8600b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -424,7 +424,7 @@ public class ActionCollectionServiceCEImpl extends BaseService<ActionCollectionR
@Override
public Mono<ActionCollection> archiveById(String id) {
Mono<ActionCollection> 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 -> {