Skip to content

Commit 7a92e71

Browse files
committed
Fix DeleteAudio domain count updating
1 parent 2fc4747 commit 7a92e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Backend/Services/WordService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ private async Task<Word> Add(string userId, Word word)
7171
{
7272
return null;
7373
}
74+
await _semDomCountService.UpdateCountsForWordDeletion(wordWithAudioToDelete);
7475

7576
wordWithAudioToDelete.Audio.RemoveAll(a => a.FileName == fileName);
7677
wordWithAudioToDelete.History.Add(wordId);
77-
7878
return await Create(userId, wordWithAudioToDelete);
7979
}
8080

0 commit comments

Comments
 (0)