aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadevchavali1@gmail.com>2019-02-21 18:23:34 +0000
committerAryadev Chavali <aryadevchavali1@gmail.com>2019-02-21 18:23:34 +0000
commitb35e9070834a1ad6dfd68bb9a463e11badf5ad71 (patch)
treedda8f4f83c961ef9353c59f2414ff227817eb45b
parentcb849fe4aeef9d1e9bc41969d1c96c47ebcbc84d (diff)
downloadnewsaggregator-b35e9070834a1ad6dfd68bb9a463e11badf5ad71.tar.gz
newsaggregator-b35e9070834a1ad6dfd68bb9a463e11badf5ad71.tar.bz2
newsaggregator-b35e9070834a1ad6dfd68bb9a463e11badf5ad71.zip
Changed return to Task
-rw-r--r--Main/Jobs/AggregatorJob.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Main/Jobs/AggregatorJob.cs b/Main/Jobs/AggregatorJob.cs
index dc7c354..eec9aff 100644
--- a/Main/Jobs/AggregatorJob.cs
+++ b/Main/Jobs/AggregatorJob.cs
@@ -1,3 +1,4 @@
+using System.Linq;
using System.Threading.Tasks;
using System.Collections.Generic;
@@ -40,7 +41,7 @@ namespace Main.Jobs {
"https://abcnews.go.com/abcnews/topstories"
};
- public static async void Process(DatabaseContext context) {
+ public static async Task Process(DatabaseContext context) {
var articles = await parseMultiple();
await context.InsertArticles(articles);
}