agenthub/src/services
Paperclip FoundingEngineer 3f3d6203b1
Some checks are pending
CI / lint + typecheck + tests (push) Waiting to run
CI / docker build + push (push) Blocked by required conditions
fix(metrics): convert PostgreSQL COUNT bigint to number
PostgreSQL COUNT() returns bigint type which Drizzle returns as a string.
This caused prom-client Gauge.set() to reject the value with error:
"TypeError: Value is not a valid number: 0"

Explicitly convert to Number to ensure prometheus metric accepts the value.

Related: BARAAA-64 - DB migrations and connection fixes

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-02 20:35:04 +00:00
..
metrics-collector.ts fix(metrics): convert PostgreSQL COUNT bigint to number 2026-05-02 20:35:04 +00:00