Fix publishing of AMQP message to the correct exchange

This commit is contained in:
Reimar 2025-04-08 11:06:36 +02:00
parent 4cd3a60f20
commit 50a83145a6
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268

View File

@ -31,7 +31,7 @@ namespace Api.AMQP
string message = JsonSerializer.Serialize(deviceLimit);
var body = Encoding.UTF8.GetBytes(message);
await _channel.BasicPublishAsync(exchange: string.Empty, routingKey: _queue, body: body);
await _channel.BasicPublishAsync(exchange: _queue, routingKey: _queue, body: body);
// Short delay before disconnecting from rabbitMQ