repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
ff979bc
parent
de6dafb
author
Antonio Mika
date
2024-11-18 14:54:53 +0000 UTC
Only insert visit if clean
1 files changed,  +1, -0
M auth/api.go
+1, -0
1@@ -668,6 +668,7 @@ func metricDrainSub(ctx context.Context, dbpool db.DB, logger *slog.Logger, secr
2 			if err != nil {
3 				if !errors.Is(err, shared.ErrAnalyticsDisabled) {
4 					logger.Info("could not record analytics visit", "reason", err, "visit", visit, user)
5+					continue
6 				}
7 			}
8