From 256bc02c2e13f635382407c2ac9d64e3979a6119 Mon Sep 17 00:00:00 2001 From: Jetsparrow Date: Fri, 28 Jan 2022 16:41:15 +0300 Subject: [PATCH] format fix --- JetHerald/Controllers/HeartbeatController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);