This entire thing starting at line 90 should be: `comments.where({ isPublic: true })`.