From 6126fe977b0ebd7e72d476ea867e47e9dc78d5fa Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 2 Nov 2023 20:40:49 +0000 Subject: [PATCH] case 4377 FIRST REAL CODE COMMIT SINCE APRIL 2023 --- dist/assets/linux-server/config.json | 3 ++- server/AyaNova/Controllers/CustomerController.cs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/assets/linux-server/config.json b/dist/assets/linux-server/config.json index 079bb6d9..3c765b62 100644 --- a/dist/assets/linux-server/config.json +++ b/dist/assets/linux-server/config.json @@ -3,5 +3,6 @@ "AYANOVA_DB_CONNECTION":"Server=localhost;Username=postgres;Password=YOUR_PASSWORD_HERE;Database=AyaNova;CommandTimeout=300;", "AYANOVA_DEFAULT_TRANSLATION":"en", "AYANOVA_DATA_PATH":"/var/ayanova/data/", - "AYANOVA_LOG_LEVEL": "Info" + "AYANOVA_LOG_LEVEL": "Info", + "AYANOVA_JWT_SECRET": "1234567MyRandom32CharacterSecret" } \ No newline at end of file diff --git a/server/AyaNova/Controllers/CustomerController.cs b/server/AyaNova/Controllers/CustomerController.cs index 6de9355f..cc6c85aa 100644 --- a/server/AyaNova/Controllers/CustomerController.cs +++ b/server/AyaNova/Controllers/CustomerController.cs @@ -206,6 +206,7 @@ namespace AyaNova.Api.Controllers [HttpGet("contact-name-list/{id}")] public async Task GetContactNameList([FromRoute] long id) { + //for case 4377 if (!serverState.IsOpen) return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason)); CustomerBiz biz = CustomerBiz.GetBiz(ct, HttpContext);