Skip to content

Commit

Permalink
chore: remove redundant distinct clause from query
Browse files Browse the repository at this point in the history
  • Loading branch information
SchutteJan committed Jun 12, 2024
1 parent 1ebb99c commit e696f73
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion backend/src/db/visits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<i64>(c)
});

Expand Down

0 comments on commit e696f73

Please sign in to comment.