mirror of
https://github.com/SigNoz/signoz.git
synced 2026-10-07 02:30:42 +01:00
#### Description - The flush CTE rendered `last_observed_at` as an untyped literal, which postgres resolves to `text` and refuses to assign to the `timestamptz` column. The column never populated, so the idle expiry never applied. - Build the CTE from the token model with only `id`, `last_observed_at` and `updated_at`, so bun casts per dialect and no token secrets land in the statement. - Flush now applies cached times through `Token.UpdateLastObservedAt`, which also skips rows with a newer stored value. - Integration test in `passwordauthn` runs with a short GC interval and asserts the column populates on both sql stores.