diff --git a/URLNotesGrabberCORE/Program.cs b/URLNotesGrabberCORE/Program.cs index 5b936f8..ddd70dd 100644 --- a/URLNotesGrabberCORE/Program.cs +++ b/URLNotesGrabberCORE/Program.cs @@ -244,7 +244,7 @@ namespace URLNotesGrabberCORE } } - CollectNotes(settings.GetValue("PathOutput"), withoutNotesOnly, beforeDate); + CollectNotes(settings.GetValue("PathOutput"), withoutNotesOnly, beforeDate).GetAwaiter().GetResult(); break; case "-blogsR": //collect notes from all posts @@ -1073,7 +1073,7 @@ namespace URLNotesGrabberCORE return "UNKNOWN"; } - static async void CollectNotes(string outPath, bool withoutNotesOnly = true, DateTime? beforeDate = null) + static async Task CollectNotes(string outPath, bool withoutNotesOnly = true, DateTime? beforeDate = null) { List> posts = DataAccess.GetPosts(withoutNotesOnly, beforeDate);