Fix disposing context in heartbeatController

This commit is contained in:
Jetsparrow 2024-04-27 14:51:42 +03:00
parent 07edc8d804
commit f08efc040e

View File

@ -67,7 +67,7 @@ public class HeartbeatController : ControllerBase
{
var heart = args.Heart ?? "General";
var ctx = await Db.GetContext();
using var ctx = await Db.GetContext();
var t = await ctx.GetTopic(args.Topic);
if (t == null)
return new NotFoundResult();