diff --git a/JetHerald/Controllers/HeartbeatController.cs b/JetHerald/Controllers/HeartbeatController.cs index 9bdbb6b..9224ce5 100644 --- a/JetHerald/Controllers/HeartbeatController.cs +++ b/JetHerald/Controllers/HeartbeatController.cs @@ -76,8 +76,8 @@ public class HeartbeatController : ControllerBase var affected = await Db.ReportHeartbeat(t.TopicId, heart, args.ExpiryTimeout); - if (affected == 1) - await Herald.BroadcastMessageRaw(t.TopicId, $"!{t.Description}!:\nHeart \"{heart}\" has started beating at {DateTime.UtcNow:0}"); + if (affected == 0) + await Herald.BroadcastMessageRaw(t.TopicId, $"!{t.Description}!:\nHeart \"{heart}\" has started beating at {DateTime.UtcNow:O}"); Timeouts.ApplyCost(t.TopicId, Config.HeartbeatCost);