fix: broken access to DB document

This commit is contained in:
Timothy Schenk 2023-08-12 23:12:59 +02:00
parent e70d32d532
commit c98b204562
2 changed files with 2 additions and 2 deletions

View file

@ -10,5 +10,5 @@ public class WonderkingContext : CouchContext
{ {
} }
public CouchDatabase<Account> Accounts { get; } public CouchDatabase<Account> Accounts { get; set; }
} }

View file

@ -83,7 +83,7 @@ public class PacketDistributorService : IHostedService
public void AddPacket(RawPacket rawPacket) public void AddPacket(RawPacket rawPacket)
{ {
this.concurrentQueue.Enqueue(rawPacket); this.concurrentQueue.Enqueue(rawPacket);
Task.Run(() => this.DequeueRawPacketAsync()); Task.Run(this.DequeueRawPacketAsync);
this.logger.LogInformation("Packet with ID: {MessageOperationCode} has been received", this.logger.LogInformation("Packet with ID: {MessageOperationCode} has been received",
rawPacket.OperationCode); rawPacket.OperationCode);
} }