Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: last update time (#8217)
ecmadao05679798499f
diff --git a/backend/api/v1/debug_interceptor.go b/backend/api/v1/debug_interceptor.goindex dff81a65e4..fba7b2ce72 100644--- a/backend/api/v1/debug_interceptor.go+++ b/backend/api/v1/debug_interceptor.go@@ -93,7 +93,10 @@ func (in *DebugInterceptor) debugInterceptorDo(ctx context.Context, fullMethod s}in.errorRecordRing.Ring = in.errorRecordRing.Ring.Next()}- in.profile.LastActiveTs = time.Now().Unix()+ if _, ok := ctx.Value(common.PrincipalIDContextKey).(int); ok {+ // Only update for authorized request.+ in.profile.LastActiveTs = time.Now().Unix()+ }in.metricReporter.Report(ctx, &metricPlugin.Metric{Name: metric.APIRequestMetricName,Value: 1,