瀏覽代碼

fixed bug with worker service

master
anastasijasavov 3 年之前
父節點
當前提交
8862d82baa
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2
    2
      IdentityProvider/Properties/launchSettings.json
  2. 1
    1
      SpotifyWorker/Worker.cs

+ 2
- 2
IdentityProvider/Properties/launchSettings.json 查看文件

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

+ 1
- 1
SpotifyWorker/Worker.cs 查看文件

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

Loading…
取消
儲存