Skip to content

Commit

Permalink
Update: remove type logic on import research
Browse files Browse the repository at this point in the history
  • Loading branch information
Oschangkai committed Nov 10, 2023
1 parent 501f8ef commit 37b1d8a
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/Infrastructure/ReportGenerator/ImportResearchJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,6 @@ public async Task ImportAsync(List<string> files, CancellationToken cancellation
if (ir.ResearchTypes is not null)
{
var researchTypeCodeList = ir.ResearchTypes.Select(x => x.ResearchType.Code).ToList();
// TODO: pending deprecated research type column removed
switch (ir.Type)
{
case "Journal 1":
case "Journal 2":
researchTypeCodeList.Add("A");
break;
case "Presentation":
researchTypeCodeList.Add("B");
break;
case "Proceeding":
researchTypeCodeList.Add("C");
break;
}

var researchTypeList = researchTypes.Where(x => researchTypeCodeList.Contains(x.Code)).ToList();
r.ResearchTypes = researchTypeList.ConvertAll(x => new ResearchResearchType() { ResearchTypeId = x.Id });
Expand Down

0 comments on commit 37b1d8a

Please sign in to comment.