Skip to content

Commit 5794303

Browse files
committed
Updating notes for all books, even if they don't have questions
1 parent 690035f commit 5794303

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/SIL.XForge.Scripture/Controllers/ParatextController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ int chapter
271271
/// <summary>
272272
/// Retrieves the Paratext notes for a specific book within a project.
273273
/// </summary>
274-
/// <param name="projectId">The Scripture Forge project identifier.</param>
274+
/// <param name="projectId">The Paratext project identifier.</param>
275275
/// <response code="200">The notes XML was successfully retrieved.</response>
276276
/// <response code="403">The user does not have permission to access Paratext.</response>
277277
/// <response code="404">The project or notes could not be found.</response>

src/SIL.XForge.Scripture/Services/ParatextSyncRunner.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,7 @@ .. _projectDoc.Data.Texts.SelectMany(t =>
559559
if (!_paratextService.IsResource(paratextId))
560560
{
561561
LogMetric("Updating Paratext notes for questions");
562-
if (questionDocsByBook[text.BookNum].Count > 0)
563-
{
564-
await UpdateParatextNotesAsync(text, questionDocsByBook[text.BookNum]);
565-
}
562+
await UpdateParatextNotesAsync(text, questionDocsByBook[text.BookNum]);
566563

567564
List<IDocument<NoteThread>> noteThreadDocs =
568565
[

0 commit comments

Comments
 (0)