diff --git a/backend/FwLite/LcmCrdt/Data/LocalCommentReadStatusService.cs b/backend/FwLite/LcmCrdt/Data/LocalCommentReadStatusService.cs index dd5a200b1b..220dac1868 100644 --- a/backend/FwLite/LcmCrdt/Data/LocalCommentReadStatusService.cs +++ b/backend/FwLite/LcmCrdt/Data/LocalCommentReadStatusService.cs @@ -93,7 +93,10 @@ public async Task MarkCommentsUnread(IEnumerable<(Guid CommentId, Guid CommentTh .ToArray(); if (toInsert.Length == 0) return; + // AddRangeAsync says it exists only for use in special value generators, and all other uses should call AddRange +#pragma warning disable VSTHRD103 // Call async methods when in an async method dbContext.UnreadComments.AddRange(toInsert); +#pragma warning restore VSTHRD103 // Call async methods when in an async method try { await dbContext.SaveChangesAsync();