diff --git a/api/chalicelib/core/errors.py b/api/chalicelib/core/errors.py index c22a51445..1c7ed94c9 100644 --- a/api/chalicelib/core/errors.py +++ b/api/chalicelib/core/errors.py @@ -502,7 +502,7 @@ def search(data: schemas.SearchErrorsSchema, project_id, user_id): FROM (SELECT error_id, name, message, - COUNT(DISTINCT COALESCE(user_id,user_uuid)) AS users, + COUNT(DISTINCT COALESCE(user_id,user_uuid::text)) AS users, COUNT(DISTINCT session_id) AS sessions, MAX(timestamp) AS max_datetime, MIN(timestamp) AS min_datetime