mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-26 07:54:56 -04:00
Use `.distinct` when fetching `planters_ids` to avoid duplicate member IDs and replace `photos.size` with the `photo_associations_count` counter cache column for `has_photos`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>