Skip to content

Commit

Permalink
feat: added new database connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel445Ar committed Nov 12, 2023
1 parent a41a866 commit bc8287c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private async void ComputeRecommendationData(object state)
{
bool isSuccess = await _peruStarsMLServiceFeignClient.ComputeRecommendationSystem();
if (isSuccess) _logger.LogInformation("Remote call to perustars-ml-api was successfully executed");
else _logger.LogInformation("Remote call to perustars-ml-api failed");
else _logger.LogError("Remote call to perustars-ml-api failed");
}

public Task StartAsync(CancellationToken cancellationToken)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task<MLResponse> GetHobbyistRecommendedArtist(long hobbyistId)
HttpResponseMessage response = await _httpClient.GetAsync(path);
if (!response.IsSuccessStatusCode)
{
_logger.LogInformation("Something went wrong when calling perustars-ml-api");
_logger.LogError("Something went wrong when calling perustars-ml-api");
return new MLResponse { Data = null, statusCode = HttpStatusCode.InternalServerError };
}
MLDto data = await response.Content.ReadFromJsonAsync<MLDto>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public async Task<IActionResult> GetFavouristArtistsFrom(long hobbyistId)
{
return StatusCode((int)HttpStatusCode.InternalServerError, "An error ocurred while trying to call perustars-ml-service");
}
return Ok(result);
return Ok(result.Data);
}
}
}
4 changes: 2 additions & 2 deletions PERUSTARS/PERUSTARS/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"ConnectionStrings": {

//"DefaultConnection1ssssss": "server=localhost;port=3306;database=perustars;uid=root;password=admin",
//"DefaultConnection": "server=perustars-db.mysql.database.azure.com;port=3306;database=perustars;uid=perustarsAdmin;password=Miguel445"
"DefaultConnection": "server=perustars-main-db.mysql.database.azure.com;port=3306;database=perustars;uid=perustarsAdmin;password=Admin123"
//"DefaultConnection3": "Server=MYSQL5047.site4now.net;Database=db_a758df_perusta;Uid=a758df_perusta;Pwd=password1",
"DefaultConnection": "Server=bufyroukqdunhwcivvpo-mysql.services.clever-cloud.com;Database=bufyroukqdunhwcivvpo;Uid=ubcldvvxbrtlhp2d;Pwd=FltJthiJHLXaKDmKT11O"
//"DefaultConnection": "Server=bufyroukqdunhwcivvpo-mysql.services.clever-cloud.com;Database=bufyroukqdunhwcivvpo;Uid=ubcldvvxbrtlhp2d;Pwd=FltJthiJHLXaKDmKT11O"
//"PostgreSQLConnection": "host=localhost;port=5432;username=postgres;password=12345;database=perustars"
// "DefaultConnection": "server=localhost;port=3306;database=perustars;uid=root;password=root"
},
Expand Down
Binary file modified PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.dll
Binary file not shown.
Binary file modified PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.pdb
Binary file not shown.
4 changes: 2 additions & 2 deletions PERUSTARS/PERUSTARS/bin/Debug/net5.0/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"ConnectionStrings": {

//"DefaultConnection1ssssss": "server=localhost;port=3306;database=perustars;uid=root;password=admin",
//"DefaultConnection": "server=perustars-db.mysql.database.azure.com;port=3306;database=perustars;uid=perustarsAdmin;password=Miguel445"
"DefaultConnection": "server=perustars-main-db.mysql.database.azure.com;port=3306;database=perustars;uid=perustarsAdmin;password=Admin123"
//"DefaultConnection3": "Server=MYSQL5047.site4now.net;Database=db_a758df_perusta;Uid=a758df_perusta;Pwd=password1",
"DefaultConnection": "Server=bufyroukqdunhwcivvpo-mysql.services.clever-cloud.com;Database=bufyroukqdunhwcivvpo;Uid=ubcldvvxbrtlhp2d;Pwd=FltJthiJHLXaKDmKT11O"
//"DefaultConnection": "Server=bufyroukqdunhwcivvpo-mysql.services.clever-cloud.com;Database=bufyroukqdunhwcivvpo;Uid=ubcldvvxbrtlhp2d;Pwd=FltJthiJHLXaKDmKT11O"
//"PostgreSQLConnection": "host=localhost;port=5432;username=postgres;password=12345;database=perustars"
// "DefaultConnection": "server=localhost;port=3306;database=perustars;uid=root;password=root"
},
Expand Down

0 comments on commit bc8287c

Please sign in to comment.