NangoHQ / nango

A single API for all your integrations.
https://www.nango.dev
Other
4.82k stars 439 forks source link

fix(server): Update query for counting errors to ensure distinct connections #3034

Closed nalanj closed 4 days ago

nalanj commented 4 days ago

Describe your changes

I noticed some count discrepancies in our production environment for connection error counts, and realized it was because we had multiple _nango_active_log records of the same type for one of the connections. This PR updates the count logic to count distinct connections so that each count doesn't take duplicates into account.

How I Tested It

linear[bot] commented 4 days ago

NAN-2168 Surface integrations/connections errors in Nango UI