case 4377 FIRST REAL CODE COMMIT SINCE APRIL 2023

This commit is contained in:
2023-11-02 20:40:49 +00:00
parent ce1e3f2b68
commit 6126fe977b
2 changed files with 3 additions and 1 deletions

View File

@@ -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"
}

View File

@@ -206,6 +206,7 @@ namespace AyaNova.Api.Controllers
[HttpGet("contact-name-list/{id}")]
public async Task<IActionResult> 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);