0.2.45 - Advanced analytics, logout old versions
This commit is contained in:
@@ -309,9 +309,7 @@ func openStore(ctx context.Context, databaseURL string, log *slog.Logger) (*stor
|
||||
return nil, lastErr
|
||||
}
|
||||
|
||||
// pruneAnalytics keeps raw row events inside their retention window. The admin page
|
||||
// aggregates at read time, so nothing survives the prune — deliberately, since this is
|
||||
// tuning telemetry rather than a permanent record of what anyone watched.
|
||||
// pruneAnalytics keeps raw engagement and journey events inside their retention window.
|
||||
func pruneAnalytics(ctx context.Context, st *store.Store, retention time.Duration, log *slog.Logger) {
|
||||
if retention <= 0 {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user