@@ -25,7 +25,7 @@ namespace BackendFramework.Controllers
2525 public class LiftController ( IProjectRepository projRepo , ISemanticDomainRepository semDomRepo ,
2626 ISemanticDomainCountRepository semDomCountRepository , ISpeakerRepository speakerRepo , IWordRepository wordRepo ,
2727 ILiftService liftService , IHubContext < ExportHub > notifyService , IPermissionService permissionService ,
28- ISemanticDomainCountService semDomCountService , ILogger < LiftController > logger ) : Controller
28+ IWordService wordService , ILogger < LiftController > logger ) : Controller
2929 {
3030 private readonly IProjectRepository _projRepo = projRepo ;
3131 private readonly ISemanticDomainRepository _semDomRepo = semDomRepo ;
@@ -35,7 +35,7 @@ public class LiftController(IProjectRepository projRepo, ISemanticDomainReposito
3535 private readonly ILiftService _liftService = liftService ;
3636 private readonly IHubContext < ExportHub > _notifyService = notifyService ;
3737 private readonly IPermissionService _permissionService = permissionService ;
38- private readonly ISemanticDomainCountService _semDomCountService = semDomCountService ;
38+ private readonly IWordService _wordService = wordService ;
3939 private readonly ILogger < LiftController > _logger = logger ;
4040
4141 private const string otelTagName = "otel.LiftController" ;
@@ -111,8 +111,7 @@ public async Task<IActionResult> DeleteFrontierAndFinishUploadLiftFile(string pr
111111 }
112112
113113 // Delete all frontier words and load the LIFT data
114- await _wordRepo . DeleteAllFrontierWords ( projectId ) ;
115- await _semDomCountRepository . DeleteAllCounts ( projectId ) ;
114+ await _wordService . ClearFrontier ( projectId ) ;
116115 return await FinishUploadLiftFile ( projectId , userId , true ) ;
117116 }
118117
@@ -264,8 +263,8 @@ private async Task<IActionResult> AddImportToProject(string liftStoragePath, str
264263
265264 int countWordsImported ;
266265 // Sets the projectId of our parser to add words to that project
267- var liftMerger = _liftService . GetLiftImporterExporter (
268- projectId , proj . VernacularWritingSystem . Bcp47 , _wordRepo , _semDomCountService ) ;
266+ var liftMerger =
267+ _liftService . GetLiftImporterExporter ( projectId , proj . VernacularWritingSystem . Bcp47 , _wordService ) ;
269268 var importedAnalysisWritingSystems = new List < WritingSystem > ( ) ;
270269 var doesImportHaveDefinitions = false ;
271270 var doesImportHaveGrammaticalInfo = false ;
0 commit comments