Skip to content

Commit

Permalink
[634] fix: periodic sync not working on webui (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
philosowaffle authored Feb 11, 2024
1 parent 5ac2c0c commit 0ccf8e6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions PelotonToGarmin.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".solution", ".solution", "{
configuration.example.json = configuration.example.json
deviceInfo.sample.xml = deviceInfo.sample.xml
README.md = README.md
vNextReleaseNotes.md = vNextReleaseNotes.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docker", "docker", "{A7F642D9-7954-4547-84DB-67A04AE1043D}"
Expand Down
7 changes: 5 additions & 2 deletions src/Api.Service/ApiStartupServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ namespace SharedStartup;
public static class ApiStartupServices
{
public static void ConfigureP2GApiServices(this IServiceCollection services)
{
// CACHE
{
// HOSTED SERVICES
services.AddHostedService<BackgroundSyncJob>();

// CACHE
services.AddSingleton<IMemoryCache, MemoryCache>();

// CONVERT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using Common;
using Common.Database;
using Common.Database;
using Common.Dto;
using Common.Observe;
using Common.Service;
using Common.Stateful;
using Microsoft.Extensions.Hosting;
using Prometheus;
using Sync;
using static Common.Observe.Metrics;
Expand Down
1 change: 1 addition & 0 deletions vNextReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Fixes

- [#604] Fix workout title template not handling special characters correctly
- [#634] WebUI - Periodic Sync not working

## Docker Tags

Expand Down

0 comments on commit 0ccf8e6

Please sign in to comment.