Browse Source

fixed bug with worker service

master
anastasijasavov 3 years ago
parent
commit
8862d82baa
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      IdentityProvider/Properties/launchSettings.json
  2. 1
    1
      SpotifyWorker/Worker.cs

+ 2
- 2
IdentityProvider/Properties/launchSettings.json View File

@@ -10,7 +10,7 @@
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchBrowser": false,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
@@ -19,7 +19,7 @@
"SpotifyService": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
"launchBrowser": false,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {

+ 1
- 1
SpotifyWorker/Worker.cs View File

@@ -104,7 +104,7 @@ namespace SpotifyWorker
await _identityService.SaveTrackAsync(new GrpcShared.DTO.Db.SaveTrackRequest
{
Album = track.Item.Album.Name,
Artist = track.Item.Artists.Single().Name,
Artist = track.Item.Artists[0].Name,
Title = track.Item.Name,
TrackId = track.Item.Id,
UserId = res[i].Id

Loading…
Cancel
Save