From d585494763052c81a9c36a2529221089e54bca1a Mon Sep 17 00:00:00 2001 From: hongwei Date: Mon, 13 Nov 2023 22:09:06 +0100 Subject: [PATCH] refactor/added the locale guard for all resourceDocs endpoints-typo --- obp-api/src/main/scala/code/api/util/APIUtil.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obp-api/src/main/scala/code/api/util/APIUtil.scala b/obp-api/src/main/scala/code/api/util/APIUtil.scala index aafd682817..246d9de7de 100644 --- a/obp-api/src/main/scala/code/api/util/APIUtil.scala +++ b/obp-api/src/main/scala/code/api/util/APIUtil.scala @@ -974,7 +974,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{ if(value.equalsIgnoreCase("es_Es")|| value.equalsIgnoreCase("en_GB")) SILENCE_IS_GOLDEN else - ErrorMessages.ConsumerKeyIsInvalid + ErrorMessages.InvalidLocale } /** only A-Z, a-z, 0-9, all allowed characters for password and max length <= 512 */