Skip to content

Commit b3f14fd

Browse files
committed
CSCTTV-4297 restore old version of profile data query
1 parent 4fc9df5 commit b3f14fd

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

aspnetcore/src/api/Controllers/ProfileDataController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public ProfileDataController(IUserProfileService userProfileService,
4040
_ttvSqlService = ttvSqlService;
4141
_logger = logger;
4242
}
43-
/*
43+
4444
/// <summary>
4545
/// Get profile data. New version using different data structure.
4646
/// </summary>
@@ -78,7 +78,8 @@ public async Task<IActionResult> Get()
7878

7979
return Ok(new ApiResponseProfileDataGet(success: true, reason: "", data: profileDataResponse, fromCache: false));
8080
}
81-
*/
81+
82+
/*
8283
/// <summary>
8384
/// Get profile data - experimental version
8485
/// </summary>
@@ -101,6 +102,7 @@ public async Task<IActionResult> Get2()
101102
102103
return Ok(new ApiResponseProfileDataGet(success: true, reason: "", data: profileDataResponse, fromCache: false));
103104
}
105+
*/
104106

105107
/// <summary>
106108
/// Modify profile data.

aspnetcore/src/api/Services/UserProfileService.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,16 +1388,6 @@ public async Task<ProfileEditorDataResponse> GetProfileData2(int userprofileId,
13881388
uniqueDataSources = await _uniqueDataSourcesService.GetUniqueDataSources(userprofileId, forElasticsearch)
13891389
};
13901390

1391-
// Add settings
1392-
ProfileSettings profileSettings = (await connection.QueryAsync<ProfileSettings>(
1393-
_ttvSqlService.GetSqlQuery_ProfileSettings(userprofileId))).FirstOrDefault();
1394-
profileDataResponse.settings = profileSettings;
1395-
1396-
// Add cooperation choices
1397-
List<ProfileEditorCooperationItem> cooperationItems = (await connection.QueryAsync<ProfileEditorCooperationItem>(
1398-
_ttvSqlService.GetSqlQuery_ProfileEditorCooperationItems(userprofileId))).ToList();
1399-
profileDataResponse.cooperation.AddRange(cooperationItems);
1400-
14011391
return profileDataResponse;
14021392
}
14031393

0 commit comments

Comments
 (0)