format fix

This commit is contained in:
Jetsparrow 2022-01-28 16:41:15 +03:00
parent 07ffe8fbbb
commit 256bc02c2e

View File

@ -76,8 +76,8 @@ public class HeartbeatController : ControllerBase
var affected = await Db.ReportHeartbeat(t.TopicId, heart, args.ExpiryTimeout); var affected = await Db.ReportHeartbeat(t.TopicId, heart, args.ExpiryTimeout);
if (affected == 1) if (affected == 0)
await Herald.BroadcastMessageRaw(t.TopicId, $"!{t.Description}!:\nHeart \"{heart}\" has started beating at {DateTime.UtcNow:0}"); await Herald.BroadcastMessageRaw(t.TopicId, $"!{t.Description}!:\nHeart \"{heart}\" has started beating at {DateTime.UtcNow:O}");
Timeouts.ApplyCost(t.TopicId, Config.HeartbeatCost); Timeouts.ApplyCost(t.TopicId, Config.HeartbeatCost);