From 71dfe4b0197fcd92867729b3367a8c5ab84d576c Mon Sep 17 00:00:00 2001 From: Vincent Cloutier Date: Fri, 17 Mar 2023 22:02:34 -0400 Subject: [PATCH] tweak checkpointing of twitter fetches 2 --- .../Processors/RetrieveTweetsProcessor.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/BirdsiteLive.Pipeline/Processors/RetrieveTweetsProcessor.cs b/src/BirdsiteLive.Pipeline/Processors/RetrieveTweetsProcessor.cs index 4678bd3..cfdb8a5 100644 --- a/src/BirdsiteLive.Pipeline/Processors/RetrieveTweetsProcessor.cs +++ b/src/BirdsiteLive.Pipeline/Processors/RetrieveTweetsProcessor.cs @@ -61,9 +61,6 @@ namespace BirdsiteLive.Pipeline.Processors.SubTasks { userWtData.Tweets = tweets; usersWtTweets.Add(userWtData); - } - else if (tweets.Length > 0) - { var tweetId = tweets.Last().Id; await _twitterUserDal.UpdateTwitterUserAsync(user.Id, tweetId, tweetId, user.FetchingErrorCount, now); }