[Solved] Code to check for duplicates in database and only displaying the newest on repeater (based on updated date)

Thx for the hint. I am trying to add the distinct function into my code, but unfortunantely it is not working as expected. It seems not to differenciate the Users anymore.

So my idea was to check at first that the current user is equal to the Owner in my database and this should be shown in the repeater. (that works fine with the find() function)

Next I want just to show the restaurants based on their names, which this user was at. But if the user was several times in the same restaurant, this specific should just be shown once.

In my code above it is now showing again all results, without checking for the User and without specific result of the restaurant.