Browse Source

Fix watch state.

pull/971/head
Sebastian 3 years ago
parent
commit
bfa93cd294
  1. 2
      backend/src/Squidex.Domain.Apps.Entities/Comments/WatchingService.cs
  2. 1
      backend/src/Squidex/Areas/Api/Controllers/Comments/CommentsController.cs

2
backend/src/Squidex.Domain.Apps.Entities/Comments/WatchingService.cs

@ -20,7 +20,7 @@ public sealed class WatchingService : IWatchingService
{
private static readonly Duration Timeout = Duration.FromMinutes(1);
public Dictionary<string, Instant> Users { get; } = new Dictionary<string, Instant>();
public Dictionary<string, Instant> Users { get; set; } = new Dictionary<string, Instant>();
public (bool, string[]) Add(string watcherId, IClock clock)
{

1
backend/src/Squidex/Areas/Api/Controllers/Comments/CommentsController.cs

@ -32,7 +32,6 @@ public sealed class CommentsController : ApiController
: base(commandBus)
{
this.commentsLoader = commentsLoader;
this.watchingService = watchingService;
}

Loading…
Cancel
Save