diff --git a/backend/FwHeadless/Program.cs b/backend/FwHeadless/Program.cs index 0df8c4982..261047d99 100644 --- a/backend/FwHeadless/Program.cs +++ b/backend/FwHeadless/Program.cs @@ -96,11 +96,11 @@ var result = await syncService.Sync(miniLcmApi, fwdataApi, dryRun); logger.LogInformation("Sync result, CrdtChanges: {CrdtChanges}, FwdataChanges: {FwdataChanges}", result.CrdtChanges, result.FwdataChanges); + fwDataFactory.CloseProject(fwDataProject); await crdtSyncService.Sync(); var srResult2 = srService.SendReceive(fwDataProject, projectCode); logger.LogInformation("Send/Receive result after CRDT sync: {srResult2}", srResult2.Output); - fwDataFactory.CloseProject(fwDataProject); return TypedResults.Ok(result); }