Skip to content

Commit 05e3682

Browse files
csharpfritzCopilot
andcommitted
feat: expand initial content lookback from 1 hour to 7 days
Allows providers to retrieve content from the past week on first poll instead of only the last hour. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 80eedf0 commit 05e3682

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TagzApp.Common/InMemoryContentMessaging.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void StartProviders(IEnumerable<ISocialMediaProvider> providers, Cancella
7979

8080
if (provider is null) return;
8181

82-
var lastQueryTime = DateTimeOffset.UtcNow.AddHours(-1);
82+
var lastQueryTime = DateTimeOffset.UtcNow.AddDays(-7);
8383

8484
await provider.StartAsync();
8585

src/TagzApp.Storage.Postgres/PostgresMessaging.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void StartTaskForProvider(ISocialMediaProvider provider, IProviderConfigu
5757
var provider = state as ISocialMediaProvider;
5858
// TODO: Check if this can done another way.
5959
if (provider == null) return;
60-
var lastQueryTime = DateTimeOffset.UtcNow.AddHours(-1);
60+
var lastQueryTime = DateTimeOffset.UtcNow.AddDays(-7);
6161

6262
await provider.StartAsync();
6363

0 commit comments

Comments
 (0)