feat(api): uses fastendpoint intead of custom impl

This commit is contained in:
2026-02-06 20:42:22 -05:00
parent ac211f86b3
commit 15d874e79b
6 changed files with 34 additions and 38 deletions

View File

@@ -65,6 +65,8 @@ public class EventTrackingService(
EventType eventType,
HttpContext context)
{
logger.LogInformation("About to track something");
// Create a new scope for database access (since we're in a background task)
using var scope = scopeFactory.CreateScope();
var db = scope.ServiceProvider.GetRequiredService<AppDbContext>();
@@ -165,4 +167,4 @@ public class EventTrackingService(
return value.Length <= maxLength ? value : value[..maxLength];
}
}
}