feat(api): uses fastendpoint intead of custom impl
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user