From e696f73cc6b2461f06f6d96056091a6726ec7551 Mon Sep 17 00:00:00 2001 From: Jan Schutte <4732389+SchutteJan@users.noreply.github.com> Date: Wed, 12 Jun 2024 22:03:25 +0200 Subject: [PATCH] chore: remove redundant distinct clause from query --- backend/src/db/visits.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/db/visits.rs b/backend/src/db/visits.rs index abe7eb5..bda0c05 100644 --- a/backend/src/db/visits.rs +++ b/backend/src/db/visits.rs @@ -37,7 +37,6 @@ pub async fn get_user_visit_stats( visits .select(count_distinct(location_id)) .filter(user_id.eq(current_user_id)) - .distinct() .first::(c) });