Adds TODO for query.

This commit is contained in:
Refringe 2024-09-13 00:17:13 -04:00
parent d1b142c2ee
commit 58e8adb730
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -39,6 +39,10 @@ class ModFilter
*/
private function baseQuery(): Builder
{
// TODO: The latestVersion relationship is sometimes null here and it causes issues. We need to ensure that
// empty relationships are filtered out. Normally we would use the whereHas method, but it causes *major*
// performance issues in this case. We need to find a better solution.
return Mod::select([
'mods.id',
'mods.name',