mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-20 23:56:08 +03:00
format fix
This commit is contained in:
parent
07ffe8fbbb
commit
256bc02c2e
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user