mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-20 23:56:08 +03:00
Fix disposing context in heartbeatController
This commit is contained in:
parent
07edc8d804
commit
f08efc040e
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user